Skip to content

Instantly share code, notes, and snippets.

@Itachi261092
Created October 13, 2015 07:27
Show Gist options
  • Save Itachi261092/1cbdaac1d7348b97ea45 to your computer and use it in GitHub Desktop.
Save Itachi261092/1cbdaac1d7348b97ea45 to your computer and use it in GitHub Desktop.
[HTACCESS] Replace "*/index.php" or "*/index" URL to "*/" / Замена урлов сайта
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/index$ [OR]
RewriteCond %{REQUEST_URI} ^/index[.]+(\w+)$
RewriteRule . / [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment