Skip to content

Instantly share code, notes, and snippets.

@Itachi261092
Created October 13, 2015 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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