I need some urgent help in Magento2. I have a live website say abc.com, and there are around 70 stores. This website was created in cake php.

Now i have converted it in Magento2. Everything is done. But i am facing 1 problem that in the live site, store url is configured like this : abc.com/uae/en , but in M2, the store url is coming is xyz.com/en.

How we can create the Store url like the live site?

Please note that i dont want to convert it in MultiWebsite as migration is completly done store wise.

Can someone help here please

Thank you

1 Answer 1


You need to go check the table core_config_data

Inside this table you have many datas, but only some of them contains the informatio you need.

You should have 2 lines for each store

one with path = web/unsecure_base_url and the other one with web/secure/url

The store url should be contained in the value column of the table with these two paths.So all you might have to do is to modify this value.

  • Yes but it will allow only store view code, not the store code. like i can modify the value as xyz.com/en where en is the storeview code. But i need like xyz.com/uae/en , where uae can be the store code, and en can be the store view code. Aug 28, 2020 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.