Skip to content

Instantly share code, notes, and snippets.

@evemilano
Created January 27, 2015 13:33
Show Gist options
  • Select an option

  • Save evemilano/824faabc18403074362b to your computer and use it in GitHub Desktop.

Select an option

Save evemilano/824faabc18403074362b to your computer and use it in GitHub Desktop.
Rimuovere index dall'URL
Options +FollowSymLinks -MultiViews -indexes
RewriteEngine On
RewriteBase /
#Rimuovere index
RewriteCond %{THE_REQUEST} /index(\.php)?[\s?/] [NC]
RewriteRule ^(.*?)index(/|$) /$1 [L,R=301,NC,NE]
@evemilano
Copy link
Author

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