cancel
Showing results for 
Search instead for 
Did you mean: 

multistore, __store and ___from_store in URL how to remove

multistore, __store and ___from_store in URL how to remove

Hi Experts,

 

kindly guide me how can i remove 

multistore, __store and ___from_store in URL 

form my url. 

 

Thanks & Regards,

Zia

4 REPLIES 4

Re: multistore, __store and ___from_store in URL how to remove

Hi @mzia87

 

In admin got to Stores > Settings > Configuration, then go to 'Web' form the left menu.

The first option is 'Add Store Code to Urls', set this to no.

 

----------------------------

If you've found one of my answers useful, please give"Kudos" or "Accept as Solution"

Re: multistore, __store and ___from_store in URL how to remove

Hi Ahsan,

thanks for reply.
there is no option in magento 2.2.5, that you mentiond i already checked.

Regards.

Re: multistore, __store and ___from_store in URL how to remove

Hello @mzia87

 

Option 1

change your page/switch/languages.phtml file and find the line that reads

echo $_lang->getCurrentUrl()

And replace with

echo $_lang->getCurrentUrl(false)

 

Option 2

Go to System -> Configuration -> Web -> URL Options and set the 'Add Store Code to URLs' option to Yes

This will make the URLs to the store appear like the following:

www.myshop.com/otherstore/

www.myshop.com/default/

To edit the names of your stores to be SEO friendly, go to System -> Manage Shops

 

Manish Mittal
https://www.manishmittal.com/

Re: multistore, __store and ___from_store in URL how to remove

Hello @Manish Mittal 
This is working fine in all other pages except product list page and product detail page.