Forum Moderators: coopster

Message Too Old, No Replies

Sending 301 header for 404 request

exactly that!

         

TinkyWinky

9:26 pm on Jan 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have 25+ 404 pages that i can't be bothered to make pages for (Took over the domain from friend), so i am looking for a script that will have all 404 request be sent a 301 request to the indexpage.

Anyone any ideas?

jatar_k

6:51 pm on Jan 22, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



having a custom 404 page could do this
[httpd.apache.org...]

I am not sure though if you can send a 301 on a 404, if you do an

if in_array REQUEST_URI in an array of the pages you want to 301 if you can resend a header that would be a 301 and throw them to the index page. I am not sure wheteher you would still end up with a 404 or it would end with 301