Created
April 20, 2019 09:13
-
-
Save fsuuaas/417fdc4bca18d8134cebd8acfc386cb1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove index.php from url Such as www.example.com/index.php/page to www.example.com/page | |
RewriteCond %{THE_REQUEST} ^.*/index\.php | |
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.$ | |
RewriteRule ^index.php(.*)$ $1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment