Skip to content

Instantly share code, notes, and snippets.

@s2ar
Created July 28, 2016 06:11
Show Gist options
  • Save s2ar/91d62e79ee807629372c2a58bc52723a to your computer and use it in GitHub Desktop.
Save s2ar/91d62e79ee807629372c2a58bc52723a to your computer and use it in GitHub Desktop.
Redirect from index.php to
# Redirect from index.php to /
RewriteCond %{THE_REQUEST} index.php [NC]
RewriteCond %{REQUEST_URI} !/bitrix/admin/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment