I added a new domain to my hosting account (site3.com) and put it in a subdirectory. Unfortunately, I cannot access the site now because it 301s to another site automatically.
Here are the details:
- site1.com moved urls to site2.com. Everything has been working fine.
- .htaccess for site1.com is in the root directory, controlling the redirect to site2.com.
- site2.com is all in its own subdirectory
- I recently added site3.com and put it in its own subdirectory
- Now site3.com forwards to site2.com (lands on a search page looking for the domain name "www.site2.com/?search=site3")
I spoke with my hosting company today and they said the htaccess file in the root controlling to redirect from site1.com to site2.com is set to forward all domains to site2.com. They said I need to write it specifically so it only forwards site1.com. That will prevent me from having this issue every time I add a new site to the hosting account. Unfortunately, they do not offer support for that and wouldn't tell me how.
My question is can I edit the htaccess file in the root directory to only redirect site1.com to site2.com? Here is what I have right now in the htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.site2.com/$1 [R=301,L]