Created
January 27, 2015 13:33
-
-
Save evemilano/824faabc18403074362b to your computer and use it in GitHub Desktop.
Rimuovere index dall'URL
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
| Options +FollowSymLinks -MultiViews -indexes | |
| RewriteEngine On | |
| RewriteBase / | |
| #Rimuovere index | |
| RewriteCond %{THE_REQUEST} /index(\.php)?[\s?/] [NC] | |
| RewriteRule ^(.*?)index(/|$) /$1 [L,R=301,NC,NE] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Articolo: https://www.evemilano.com/2014/10/esempi-mod-rewrite-htaccess-apache/