Get URL on a 404 page

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
vbmark
Forum Newbie
Posts: 19
Joined: Sun Feb 15, 2009 8:53 pm

Get URL on a 404 page

Post by vbmark »

Hello,

I want people to be able to enter a link to my site like this:

http://www.mydomain.com/his-username/his-page3

That page does not exist so I want to grab the URL and parse it.

I figure can send it anywhere on a 404, but how do I get the URL when it hits my 404 page?

Thanks!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Get URL on a 404 page

Post by requinix »

There's this thing called URL rewriting...
Post Reply