Browsed by
Tag: Nginx

Nginx – Different storeviews or websites in subfolders

Nginx – Different storeviews or websites in subfolders

A client wants his multistore shop to be set up like this: http://www.domain1.org/en/ -> store view 2 http://www.domain1.org/de/ -> store view 3 http://www.domain1.org/fr/ -> store view 4 http://www.domain1.org/it/ -> store view 5 In this post, I will show you how to do this thing by using Nginx configuration. Step 1: add the configuration mapping to Nginx’s conf file. /etc/nginx/config.d/mapping_store.conf map $request_uri $MAGE_RUN_CODE { default en_US; ~^/us/ en_US; #en_US is Store View 2’s code ~^/de/ de_DE; ~^/fr/ fr_FR; ~^/it/ it_IT; }…

Read More Read More