Created
January 27, 2015 13:30
-
-
Save evemilano/37cee5605c64dbf7864f to your computer and use it in GitHub Desktop.
Aggiungere .php all'URL per accedere files senza redirezioni
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 / | |
| #Aggiungere .php per accedere al file, senza essere redirezionato | |
| RewriteCond %{REQUEST_FILENAME}.php -f | |
| RewriteCond %{REQUEST_URI} !/$ | |
| RewriteRule (.*) $1.php [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/