Hey guys
I’ve run into a very annoying issu with a MSM site, which must relate to the htaccess file removing index.php from the URL.
The setup
domain1.com - This is the main site.
domain1.com/domain2 - This is the new MSM site
domain2.domain1.com - This points to domain1.com, where a htaccess file redirects to /domain2
The problem
domain1.com - OK
domain1.com/index.php - OK
domain1.com/url-title - OK
domain1.com/index.php/url-title - OK
domain1.com/domain2 - OK
domain1.com/domain2/index.php - OK
domain1.com/domain2/url-title - Domain1 404 Error
domain1.com/domain2/index.php/url-title - OK
domain2.domain1.com - OK
domain2.domain1.com/index.php - Domain2 404 ERROR
domain2.domain1.com/url-title - OK
domain2.domain1.com/index.php/url-title - Domain2 404 ERROR
There’s clearly a problem with the index.php-removal. Removing it does indeed work, but the reason why this is a problem, is because I’m trying to implement Biber Ltd’s Multi Language Extension, which won’t work. I believe this problem is related to the problem with index.php removal.
The .htaccess
In domain1.com:
AddDefaultCharset UTF-8
ErrorDocument 404 /index.php/home/404
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} domain2.domain1.com
RewriteCond %{REQUEST_URI} !domain2/
RewriteRule ^(.*)$ domain2/$1 [L]
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>In domain2 I have tried the same htaccess as in domain1, both with and without the http-rewrite rule as well as with and without the trailing “index.php?” questionmark - as well as other combinations, but I simply can’t get it to work!
I’m way past going mad here… :/