The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> A massive redirect via htaccess?
Nick
post 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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post May 4 2007, 08:47 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



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
...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Nick
post 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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 02:21 PM