A massive redirect via htaccess? |
A massive redirect via htaccess? |
Nick |
May 4 2007, 06:00 PM
Post
#1
|
Member Group: Members Posts: 32 Joined: 29-September 06 Member No.: 268 |
Hi! Hopefully this is the right place for this post - I have a big list of URLs I want to be redirected to another big list of URLs because I totally changed the structure of a website I'm working on. I have both lists lined up in two nice columns. THe question is, how can I slap them all into an htaccess file so that each one redirects to the right place? Thanks! |
Darin McGrew |
May 4 2007, 08:47 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,366 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Basically, you need to convert your list of URLs:
CODE /oldpath1 /newpath1 into a list of redirection directives:/oldpath2 /newpath2 /oldpath3 /newpath3 ... CODE RedirectPermanent /oldpath1 http://www.example.com/newpath1 RedirectPermanent /oldpath2 http://www.example.com/newpath2 RedirectPermanent /oldpath3 http://www.example.com/newpath3 ... |
Nick |
May 5 2007, 01:33 AM
Post
#3
|
Member Group: Members Posts: 32 Joined: 29-September 06 Member No.: 268 |
Excellent, thanks! Looks easy enough!
|
Lo-Fi Version | Time is now: 21st September 2024 - 02:18 PM |