My htaccess code to remove index.php from my url is messing with an app I have on my server. To access the app, I usually type:
http://mydomain.com/appdirectory/
However this is redirecting to my home page because of the index.php remove code. I know nothing about how the code works, but I have narrowed it down to the very last line in this code:
# Remove index.php
# Uses the "include method"
# <a href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method">http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method</a>
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(archive|home|stories|videos||P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]if I comment it out like this, it works:
# Remove index.php
# Uses the "include method"
# <a href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method">http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method</a>
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(archive|home|stories|videos||P[0-9]{2,8}) [NC]
# RewriteRule ^(.*)$ /index.php/$1 [L]
What exactly is that last line doing and how can I fix this? Thx.