Reputation: 1
I am having problem removing this index.php using all above solution. can any one help. My system configuration is ubuntu 14.04 and i am using zend framework 1.12.
my .htaccess
file has
RewriteEngine On RewriteBase /Reports_Century/public/ RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(.+)$ index.php [L]
Any other setting for removing index.php
from URL?
Upvotes: 0
Views: 377
Reputation: 1078
Try using this code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !(\.wav)$
RewriteRule ^.*$ index.php [NC,L]
RewriteRule !\.(js|ico|txt|gif|jpg|png|css|otf|ttf)$ index.php
Upvotes: 0