Do this:
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
More Related Contents:
- Remove .php extension with .htaccess
- Tips for debugging .htaccess rewrite rules
- How to enable mod_rewrite for Apache 2.2
- How to debug Apache mod_rewrite
- apache redirect from non www to www
- RewriteRule Last [L] flag not working?
- Hidden features of mod_rewrite
- Rewriting an arbitrary number of path segments to query parameters
- What does RewriteBase do and how to use it?
- How to force https on elastic beanstalk?
- Forbidden You don’t have permission to access / on this server [closed]
- Removing the .php extension with mod_rewrite
- Case Insensitive URLs with mod_rewrite
- mod_rewrite: remove trailing slash (only one!)
- Mod_Rewrite unexpected behavior L flag
- .htaccess rewrite “/book.php?id=1234” to “/book/1234”
- How to encode special characters using mod_rewrite & Apache?
- Redirect to Apache built-in 404 page with mod_rewrite?
- rewrite rules for apache 2 to use with angular js
- mod_rewrite with anchor link
- Redirect requests only if the file is not found?
- Apache rewrite based on subdomain
- Multiple RewriteRules for single RewriteCond in .htaccess
- Difference between $1 vs %1 in .htaccess
- Internal URL rewrite no longer working after upgrading Apache to 2.4
- RewriteRule checking file in rewriten file path exists
- RewriteCond to match query string parameters in any order
- Apache rewrite rules not being applied for angularjs
- AH10411 error: Managing spaces and %20 in apache mod_rewrite
- mod_rewrite urlencoding an already urlencoded query string parameter – any way to disable this?