Forum Moderators: phranque

Message Too Old, No Replies

Multiple page redirects not working with .htaccess

.htaccess with multiple redirect web pages

         

Muji_san

3:57 am on Jan 17, 2009 (gmt 0)

10+ Year Member



Hello,

I have been successful with redirecting an old page to a new one. (same domain name.)

using .htaccess

Redirect 301 /thispage/ http://www.example.com/otherpage/otherpage.htm

Works great! Yes!

The problem.
When I try to add another page

Redirect 301 /thispage/ http://www.example.com/otherpage/otherpage.htm
Redirect 301 /thispage2/ http://www.example.com/otherpage2/otherpage2.htm

I get an server error message for both links.

What am I doing wrong? I have about 30 pages to fix.

I've tried using (,) to separate. Also tried getting rid of 'www' prefix but still nothing is working.

If I go back to the original one redirect

Redirect 301 /thispage/ http://www.example.com/otherpage/otherpage.htm

it works.

So somehow it does not recognize multiple links/items?

Looked everywhere on the web for some help and getting nowhere.

Hoping someone can help here.

g1smd

10:18 am on Jan 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You didn't say what the full test URL was and what the actual error is.

Muji_san

11:21 am on Jan 17, 2009 (gmt 0)

10+ Year Member



After spending two days trying to figure this out I came across an article that basically convinced me that the right thing to do is to go back to the older naming convention since the website in question has built up a very nice link system over the last 10 years and that the .htaccess redirect 301 method may not be the best solution if I have more than 30 pages to change.

BTW. the error was an internal server problem once I added the second page redirect.

Got most of the pages changed already. Thanks though.