I used next .htaccess code:
RewriteEngine on
# if the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule ^(.*)$ index.php/$1 [L]
It work nice, but it's available all pages with index.php and without it, for example:
http://localhost/framework/about
http://localhost/framework/index.php/about // need redirect to http://localhost/framework/about
I want to redirect all request with index.php to without index.php with SEO reasons, How can I remove index.php?
frameworkfolder ?ForceTypefor this as well. It will allow you to drop the.phpand does not require theRewriteEngine