I use the official EE rewrite rule to remove index.php. This has always worked for me just fine... until now. I am using a hosting company that I've not used before and it is acting funny.
The problem: all routes are getting passed to the main index template, as if there were no additional url segments.
Here is what I'm using:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $1 !\.(gif|jpe?g|png|pdf|doc|mp3|mov|mp4|tiff|ico|tif)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
Anyone seen this issue before?
Update: I am using an A Small Orange shared plan.
The solution: In config.rb, I needed to change this...
$config['uri_protocol'] = 'AUTO';
to...
$config['uri_protocol'] = 'REQUEST_URI';
$config['uri_protocol'] = 'REQUEST_URI';
works for me. – minhnguyen Apr 10 '14 at 17:27