Joomla multilingual subdomain redirect/rewrite

clemclem nginx-forum at
Sun Jun 17 18:15:27 UTC 2012

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;

server {
  listen 80;

One more question though :  is there a way for Nginx to rewrite all the
URLs in the generated page so they are all SEF ? ie: instead of ?

Posted at Nginx Forum:,227568,227628#msg-227628

More information about the nginx mailing list