httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From janus76 <janus7...@gmail.com>
Subject [users@httpd] 301 redirects
Date Mon, 13 Jul 2009 15:02:57 GMT

Could anybody help me with this as its driving me round the bend.

I have several old site, which i will be taking done to be replaced but once
single new site.

I need to setup some redirect for the old urls we have in the wild, i.e
brochures etc.

The old urls are in the format of 
i.e.
http://www.olddomain/oldsite1/index.php?id=99
http://www.olddomain/oldsite2/index.php?id=22

i need to do a 301 redirect of each of these urls to something like

http://www.newdomain/newsite/page1
http://www.newdomain/newsite/page2

I know i can't do a simple redirect in .htaccess as the id number does not
get picked up.
ie
Redirect http://www.olddomain/oldsite1/index.php?id=99
http://www.newdomain/newsite/page1

I think i need to use RewriteRule, but i am not too sure how.

The id numbers on the old site have nothing to do with the new site, so
these do not need to be factored into the rewriting.

Maybe i am thinking to hard about this but it is driving me mad.

Any help would be most apreciated.

All the best

Janus
-- 
View this message in context: http://www.nabble.com/301-redirects-tp24463434p24463434.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message