Forum Moderators: phranque
Okay, I have a hosting package (shared) I host multiple domains on this one hosting package. I have my main domain pointed to my root folder and all my other domains are inside a folder called "sites" with a directory created for each domain like so:
/maindomain <- root folder where my main domain points
/maindomain/sites/wwwdomain2com <-another domain points here
/maindomain/sites/wwwdomain3com <-another domain points here
/maindomain/sites/wwwdomain4com <-another domain points here
Of course each is a different domain, these aren't sub domains. The script I run in root uses mod_rewrite and all has been well until I decided to start up another website, and the new script for the new website uses mod_rewrite also which is inside "sites/mynewebsite" problem is, I keep getting 404 errors on my new site when anything is clicked it keeps referring back to the root domain like so
Error /sites/mynewwebsite/index.php was not found. I am assuming its reading the .htaccess in the root folder but I dont understand why since I havent declared that anywhere in the script.
Heres a sample of the .htaccess in root:
Options -Indexes
RewriteEngine On
RewriteRule ^Logoff.html/?$ index.php?action=logoff
RewriteRule ^Forgot-Password.html/?$ index.php?action=forgotpw
RewriteEngine on
RewriteRule ^index.html$ index.php [L]
RewriteRule ^most-popular/?$ index.php?order=2 [L]
Note also that your root .htaccess RewriteRule directives are both missing [L] flags. This is inefficient.
Jim