Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save evemilano/37cee5605c64dbf7864f to your computer and use it in GitHub Desktop.

Select an option

Save evemilano/37cee5605c64dbf7864f to your computer and use it in GitHub Desktop.
Aggiungere .php all'URL per accedere files senza redirezioni
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]
@evemilano
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment