Hi all, In fact, I was looking for a transparent redirect. Here is what I finaly did : server { server_name ~^(?<lang>.+)\.example\.com$; location / { rewrite /(.*)$ /$lang/$1 break; proxy_pass http://www.example.com; proxy_redirect http://www.example.com http://$lang.example.com/$request_uri; } } server { listen 80; server_name www.example.com; ...by clemclem - Nginx Mailing List - English
Hi all, I have a multilingual Joomla website, whose URL currently look like the following : http://www.example.com/fr/test/test.html (note the FR posision after the server name) In order to achieve some SEO, I'd like my URLs to look like this : http://fr.example.com/test/test.html Ie: the langage code is now part of the subdomain, and removed from the request_uri I configured my DNS (fby clemclem - Nginx Mailing List - English