Hello,
I’m running an expression engine installation in an addon-domain of my server, and I’m having trouble getting the .htaccess index.php removal working. Every page returns my homepage.
The code I’m using is the following (which is the same as the code on the main domain)
RewriteCond $1 !\.(gif|jpe?g|png|js|css)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
Obviously, I tried with the questionmark, same result, it’s not working.
You might need to put the addon domain in the RewriteRule, depending on how they implemented the additional hosts. It sounds like they are not real vhosts and instead are directories inside your main directory, with mod_rewrite used to server those requests. I know this is the case with Arcustech (commonly used for EE hosting), and several others.
RewriteRule ^(.*)$ /example.com/index.php/$1 [L]You might need to put the addon domain in the RewriteRule, depending on how they implemented the additional hosts. It sounds like they are not real vhosts and instead are directories inside your main directory, with mod_rewrite used to server those requests. I know this is the case with Arcustech (commonly used for EE hosting), and several others.RewriteRule ^(.*)$ /example.com/index.php/$1 [L]
No luck there… that causes a 500 internal server error.
Sorry… so putting that full path did in fact work.
The difficulty now, is that the URL is changing in the address bar to show index.php… instead of just rendering it behind the scenes like normal.
Note that in order to get it to work, I had to do the following: RewriteRule ^(.*)$ http://www.example.com/index.php/$1 [L]
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.