Forum Moderators: phranque

Message Too Old, No Replies

Redirect from Root to Subdomain w/ Query String

         

travelvice

9:37 pm on Feb 27, 2008 (gmt 0)

10+ Year Member



Howdy,

I've got an archive page for my travelogue that needs a perm. redirect.

Old requests (with both WWW and without) hitting the page might look like this:

http://example.com.com/archive
http://example.com/archive/?by=date
http://www.example.com/archive/?by=country
http://example.com/archive/?by=country#Peru

An travelogue article inside that archive directory might look like this:

http://example.com/archive/2008/02/cowboy-bear-ninja.php

The new subdomain that will have the new archive page will be here:

http://travelogue.example.com/

...with an example: http://travelogue.example.com/?by=country#Peru

Thoughts on how to do a proper redirect for hits to the archive page, but not fudge the URL for existing travelogue entries (which will not move over to the subdomain)?

[edited by: jdMorgan at 6:29 am (utc) on Feb. 28, 2008]
[edit reason] Please use example.com. See TOS. [/edit]

travelvice

7:02 am on Feb 28, 2008 (gmt 0)

10+ Year Member



This turned into a dupe --> new thread here: [webmasterworld.com...]