cancel
Showing results for 
Search instead for 
Did you mean: 

Magento Store view URL with slash instead of underscore

Magento Store view URL with slash instead of underscore

We have different stores for 6 countries with 2 languages for each English and Arabic. So totally we have 12 store view. Everything works fine, but the URL of store http://example.com/COUNTRY_LANGUAGE to changed to http://example.com/COUNTRY/LANGUAGE. I am not sure how to achieve this, I know it is adding store in the URL after domain name. But I cannot setup store with slash(/).

 

Preconditions

  1. Magento EE 2.1.2
  2. PHP 7.0.2 Mysql 5.6

Expected result

  1. http://example.com/kw/en/
  2. http://example.com/kw/ar/
  3. http://example.com/sa/en/
  4. http://example.com/sa/ar/

Actual result

  1. http://example.com/kw_en/
  2. http://example.com/kw_ar/
  3. http://example.com/sa_en/
  4. http://example.com/sa_ar/
1 REPLY 1

Re: Magento Store view URL with slash instead of underscore

Hi @vinoth_web,

 

As you've mentioned the current result is the out of the box result.

 

Maybe you could try some rewrites with, for example, htaccess to redirect all the traffic to the right URL.