.htaccess 301 question

Bartie's Avatar, Join Date: Jun 2007
Newbie Member
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.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Try
Code:
RedirectMatch 301 sub1.domain1.com sub1.domain2.com
0
Bartie's Avatar, Join Date: Jun 2007
Newbie Member
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
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Thats the case with many web hosts