Jump to content
thirty bees forum
  • 0

Hide specific language "alias" for url with NGINX


Question

Posted

Hi,

I'm adjusting a brand new TB installation with several languages. Problem: domain is ".es" (like mydomain.es), and default language is spanish. So, when a Spanish user load the page, in the url appears something like mydomain.es/es/.

I'm trying to "hide" the "/es/" alias (or virtual folder, whatever is called), so spanish users can see mydomain.es/product-name instead of mydomain.es/es/product-name, but language still appears with other languages, like mydomain.es/en/product-name

So far, I've tried this: location = /es/ { rewrite ^/es/(.*)$ /index.php last; }

And this: rewrite ^/es/(.*)$ $1 last;

But nothing works, still appears /es/ folder.

Could anyone help me? Thank you!

PS: Here's my nginx vhost conf

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...