I have a hosting service with two addon domains.
Everything worked well until a few weeks ago.
If I go to www.addon1.com, it redirects to www.mainwebsite.com. The same thing happens for www.addon2.com.
But if I go to www.addon1.com/index.php, it loads correctly.
I really don't know what the problem is.
Is there anything I can do (htaccess or something else) to ensure that www.addon1.com is not redirected to www.mainwebsite.com
EDIT
Contents www.addon1.com.htaccess
Options -Indexes
Content www.mainwebsite.com.htaccess
Options -Indexes
Redirect 301 /index.html http://www.mainwebsite.com/index.php
Redirect 301 /portfolio.html http://www.mainwebsite.com/portfolio/index.php
Redirect 301 /services.html http://www.mainwebsite.com/services/index.php
source
share