First let me say that I understand removing index.php from the URL is not supported.
I followed the instructions here using the Include method described.
If I use this:
Options +FollowSymlinks
RewriteEngine on
RewriteCond $1 !^(images|mqgyplMhrp8|themes|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
... and enter http://domain.com in the browser, it correctly hides index.php. However, if I enter http://www.domain.com in the browser, it correctly strips the www but does not hide index.php (it shows up as http://domain.com/index.php)
I’m trying to figure out how to get both rules to work together, I would appreciate any advice. (I did try removing ,L from the last line, doesn’t change anything.) When I reverse the instructions like this, I actually get a server error.
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
RewriteCond $1 !^(images|mqgyplMhrp8|themes|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]
Thanks, Paul
