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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
https://www.evemilano.com/2014/10/esempi-mod-rewrite-htaccess-apache/