Skip to content

Instantly share code, notes, and snippets.

@fsuuaas
Created April 20, 2019 09:13
Show Gist options
  • Save fsuuaas/417fdc4bca18d8134cebd8acfc386cb1 to your computer and use it in GitHub Desktop.
Save fsuuaas/417fdc4bca18d8134cebd8acfc386cb1 to your computer and use it in GitHub Desktop.
# 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