Jump to content

Throw 410 status from Apache


elabx
 Share

Recommended Posts

I have a route I want to throw a 410 status at it instead of 404, is there a way to do this right from Apache? I would bet you should be able to do something like this at the top of the htaccess file:

RewriteEngine On
RewriteRule ^some-url/some-path(/.*)?$ - [G]

But it's not stopping and continues until the ProcessWire 404.
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...