Nginx Joomla Internationalization URL rewriting
Posted
by
cl3m
on Stack Overflow
See other posts from Stack Overflow
or by cl3m
Published on 2012-05-31T10:43:24Z
Indexed on
2012/06/08
16:40 UTC
Read the original article
Hit count: 255
I'm using Joomla in combination with Nginx, and I'm currently trying to achieve some URL rewriting for a website that has several langages supported (italian, french, chinese, and deutch)
The urls have the country code after the domain name, like so :
http://www.example.com/fr/test/test.html
or
http://www.example.com/de/test/test.html
I'm looking to rewrite the urls so the country code is part of the subdomain :
so
http://www.example.com/fr/test/test.html
becomes
http://fr.example.com/test/test.html
Is there a way to achieve this with Nginx or should I look into a third party extension for Joomla (not my favorite choice).
Thanks !!
© Stack Overflow or respective owner