Hey guys
I’m having some trouble with htaccess-settings for a MSM, multi-language site that’s been moved from a development site to a live server.
The server setup looks like this
site1/index.php <- This is the main site
site1/site2/index.php <- This is the new site
site1/site2/en/index.php <- This is the language folder for the new site
Now, I’m forced to redirect site2.com using htaccess from site1 to site2. For this I’m using the following htaccess-file in site1:
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{HTTP_HOST} site2.com
RewriteCond %{REQUEST_URI} !site2/
RewriteRule ^(.*)$ site2/$1 [L]However, as soon as I try to access a subfolder, such as site1/site2/en/, this is being treated as an EE segment (by site2) and renders my EE 404 page.
Would appreciate some help by any htaccess-guru out there!
/André