Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Server Configuration _ A massive redirect via htaccess?

Posted by: Nick May 4 2007, 06:00 PM



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!

Posted by: Darin McGrew May 4 2007, 08:47 PM

Basically, you need to convert your list of URLs:

CODE
/oldpath1 /newpath1
/oldpath2 /newpath2
/oldpath3 /newpath3
...
into a list of redirection directives:
CODE
RedirectPermanent /oldpath1 http://www.example.com/newpath1
RedirectPermanent /oldpath2 http://www.example.com/newpath2
RedirectPermanent /oldpath3 http://www.example.com/newpath3
...

Posted by: Nick May 5 2007, 01:33 AM

Excellent, thanks! Looks easy enough!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)