Page 1 of 1

php redirection help

Posted: Tue Dec 27, 2005 12:10 pm
by shoxlx
dose any1 kno of a php script that will take a 404 error...

ex. http://www.shoxlx.com/my name

... and take the "my name" and redirect it to another part of the site where it can be used??

EDIT:

this might make more sence...

This way if a user types http://myserver/myapp then my server will redirect to https://myserver/myapp automatically to http://myserver/thenewpage.

Posted: Tue Dec 27, 2005 1:01 pm
by josh

Posted: Tue Dec 27, 2005 3:43 pm
by Chris Corbyn
From your other thread I guess you're not using Apache.... does Abyss support custom 404 pages? I've heard of issues using dynamic 404 pages though since IE occassionally decides that the page contains no data and throws it's own error :( I'd guess you could do it with $_SERVER['HTTP_REFERRER'] and/or $_SERVER['PHP_SELF']

Posted: Tue Dec 27, 2005 4:25 pm
by josh
I think the RFC says 404's SHOULD only be used for not founds, search engines and the like will see the 404 and likely drop that page, just switch to apache abyss isn't powerfull enough that I know of.