Re: 301 redirects

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

 



janus76 wrote:
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

Looks like to me you have 2 jobs there that should probably
not be looked at as the same solution.

1.) 301 redirect for search engines to a new permanent destination
2.) rewrite for new URL structure (since I'm guessing "page1" is not
the actual name of the file you are trying to reach).

Donovan




--
  =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o
  D. BROOKE                       EUCA Design Center
                               WebDNA Software Corp.
  WEB:> http://www.euca.us  |   http://www.webdna.us
  =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o
  WebDNA: [** Square Bracket Utopia **]

---------------------------------------------------------------------
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