Basically I have a shared server with an existing site and a new site. On most shared hosting accounts(linux) I have, the file structure is something like this:
- public_html
-- firstsite.com
-- secondsite.com
For the server in question the structure is more like this:
- public_html
-- all of the folders and files of the first site loose in this directory
-- secondsite.com
So if I try to access secondsite.com from a browser, I am sent here instead:
http://firstsite.com/secondsite.com
...which is obviously incorrect. My hosting support told me that if I rename the htaccess file used by firstsite.com the secondsite.com will resolve as:
http://secondsite.com
I obviously just can't disable my htaccess file because that will bork the first site.
So I'm looking at my htaccess file and thinking this is the problematic line:
### Only allow access without the www. ####
RewriteCond %{HTTP_HOST} !^firstsite\.come$ [NC]
RewriteRule ^(.*)$ http://firstsite.com/$1 [R=301,L]
I'm thinking I need a similar set of rules that pertain to secondsite.com
?
Any suggestions would be great.