Jump to content

Redirect not found pages


wemustdesign

Recommended Posts

I guess I don't understand the question. That's exactly what the 'code' I provided does. If Apache see's a page isn't found then it will automatically redirect to that page, that's the whole point of the directive. If you are trying to say that a page does exist, but you are deciding in a PHP script that some content doesn't exist (i.e. vanity URLs and a user that doesn't exist) then you can just use a header('Location: /404.html'); but that isn't a page not found or mod_rewrite related question.

 

@PradeepKr

401 is an unauthorised error message, it has nothing to do with page not found.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.