Created
January 27, 2015 13:31
-
-
Save evemilano/9b5a41370fcec6d8b3d6 to your computer and use it in GitHub Desktop.
Rimuovere index e slash 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 | |
| RewriteRule (.*)/index$ $1/ [R=302] | |
| #Rimuovere lo slash / se non è una directory | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_URI} /$ | |
| RewriteRule (.*)/ $1 [R=301,L] |
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/