i've a problem with a SERVER_NAME variable in .haccess
on url http://ravasiniferramenta.com the SERVER_NAME is http://ravasiniferramenta.com
on url ravasiniferramenta.com the SERVER_NAME is ravasiniferramenta.com
on url en.ravasiniferramenta.it the SERVER_NAME is ravasiniferramenta.com
why not show en.ravasiniferramenta.com ? it's a problem because more script in my site set url by server_name and now not work correctly
is there a way to set the correct server_name from .htaccess file?
now my configuration is :
CODE: SELECT ALL
RewriteCond %{HTTP:X-GT-Lang} ^$
RewriteCond %{HTTP_HOST} ^ravasiniferramenta.com
RewriteCond %{SERVER_NAME} !\.ravasiniferramenta.com$ [NC]
RewriteRule (.*) http://ravasiniferramenta.com$1 [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ http://ravasiniferramenta.com$2 [R=301,L,QSA]
- See more at: server-name-variable-gtranslate-enterprise-t3577.html#sthash.yIGCE6P7.dpuf