on url http://www.fershop.it the SERVER_NAME is http://www.fershop.it
on url fershop.it the SERVER_NAME is fershop.it
on url en.fershop.it the SERVER_NAME is fershop.it
why not show en.fershop.it ? 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} ^fershop.it
RewriteCond %{SERVER_NAME} !\.fershop\.it$ [NC]
RewriteRule (.*) http://www.fershop.it/$1 [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ http://$1.fershop.it/$2 [R=301,L,QSA]