php redirection help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shoxlx
Forum Newbie
Posts: 23
Joined: Tue Oct 11, 2005 10:42 pm

php redirection help

Post 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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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']
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post 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.
Post Reply