301 redirects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux