I have one issue I am using one .htaccess file form one year this code is working on all server but today I have one new server same code is not working. I am not able to remove index.php from URL. My server is Apache/2.2.15 (Red Hat). My code for .htaccess file
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
<IfModule mod_headers.c>
Header add Cache-Control: "no-store, no-cache, must-revalidate"
</IfModule>
In config file I set below settings
$config['index_page'] = ''; $config['uri_protocol'] = 'AUTO';
This same code is working on another server
