.htaccess 301 question

Newbie Member
20Jun2007,15:48   #1
Bartie's Avatar
Hi,

Been trying to make redirect 301 from 1 domainname on my old webserver to a different dommainname on my new site. I'm also using subdomains, the subdomain names are the same.
fe: sub1.domain1.com to sub1.domain2.com

I tried countles redirect rules and combinations in the .htaccess on the old webserver but they don't seem to work. Mostly I'm getting: 500 ERROR: This is not the page you requested.
This is a non-erronous page (500EP) used to display erronous pages (500!EP).

Any suggestions?

B.
Go4Expert Founder
20Jun2007,18:12   #2
shabbir's Avatar
Try
Code:
RedirectMatch 301 sub1.domain1.com sub1.domain2.com
Newbie Member
21Jun2007,20:21   #3
Bartie's Avatar
Tnx for the help shabbir.

After more research it seemed .htaccess wasn't allowed in the directives of the host. So I had to do it in php So I didn't get to check out your redirect
Go4Expert Founder
22Jun2007,09:27   #4
shabbir's Avatar
Thats the case with many web hosts