Forum Moderators: phranque

Message Too Old, No Replies

Redirect dynamic page to home page

         

Lastwords

10:43 am on Nov 23, 2007 (gmt 0)

10+ Year Member



I've trying to find the best way to redirect a dymanic page back to the homepage, and I've been through the posts here and can't seem to find anything that fits.

So, what I want to do is this:

www.domain.com/webpage.php?ID=12345 to redirect to www.domain.com

To reiterate I want the dymanic page to go back to the homepage when that page has been requested.

I can use a simple Redirect if it's webpage.php but when the?ID-12345 is added it doesnt work.

I am looking into a way rewrite can help me but I havent worked it out yet. Also I could add something to the actual webpage.php?ID=12345 in the http headers and do it that way, but I think that's cheating.

Any suggestions for the best way to achive my goal?

Thanks.

Lastwords

10:59 am on Nov 23, 2007 (gmt 0)

10+ Year Member



Just found:

Changing Dynamic URLs to Static URLs [webmasterworld.com],

So trying this out, thanks

[edited by: jdMorgan at 2:55 pm (utc) on Nov. 23, 2007]
[edit reason] Added link to thread reference. [/edit]