404 error.. maybe?

Penguin

Fledgling Freddie
Joined
May 11, 2005
Messages
375
Hey Guys,

With my latest site, http://www.squashurl.com (URL Redirector) i would like to swap the Redirection URL from http://www.squashurl.com?code=$code to http://www.squashurl.com/$code

I'm not entirely sure how to do this, perhaps i could swap the 404 error page to find out which URL they entered?(I've seen this done before, but not sure how, is it just the HTTP refferal URL?) then seperate the code from the address, redirect to the home page with the code variable, or?

If this is really advanced stuff, i'll just leave it as it is for the time being i think,

Any help much appreciated,

- Penguin
 

TheJkWhoSaysNi

One of Freddy's beloved
Joined
Dec 23, 2003
Messages
187
You want mod_rewrite for this. Just google it. Theres hundreds of tutorials on how to do what you're trying to.
 

Penguin

Fledgling Freddie
Joined
May 11, 2005
Messages
375
Never used htaccess before, thanks for the link Tears, cheers TheJkWhoSaysNi, i'll google mod_rewrite.

- Penguin
 

Users who are viewing this thread

Top Bottom