Skip to content

Instantly share code, notes, and snippets.

@evemilano
Created January 27, 2015 13:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save evemilano/e9b30454c5bb23a4cd11 to your computer and use it in GitHub Desktop.
Forzare l'accesso su dominio non-www
#Non inserire mai www nel dominio.
#Sostituisci 'example.com' con il tuo dominio
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(([a-z0-9_]+\.)?example\.com)$ [NC]
RewriteRule .? http://%1%{REQUEST_URI} [R=301,L]
@evemilano
Copy link
Author

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