Jump to content

[SOLVED] How to create multi stores in subdomains when Prestashop is also installed in subdomain?


stifler97
 Share

Recommended Posts

Posted (edited)

[SOLVED]


What do I have?

  • A website: domain.com
  • Prestashop installed in: prestashop.domain.com
  • Multistore is enabled

What do I want?

  • Multiple shops in subdomains like:
    • someshop.domain.com
    • anothershop.domain.com

What did I do before asking?

What is the problem?

  • someshop.domain.com does not show anything and it does not work

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

UPDATE: SOLVED

Special thanks to @Prestachamps ❤️

What is the technical issue?

  • Web server does not know that where is someshop.domain.com and you need to tell your web server to point to specific route

How to solve this generally?

  • You should find out how to set up subdomains in your web server.
  • Then create a subdomain for each shop that belongs to multi stores list like:
    • someshop.domain.com
  • Point the subdomain to Prestashop instance route. This means:
    • someshop.domain.com will always load prestashop.domain.com
    • But it does NOT redirect to prestashop.domain.com (This is key point)
  • This pointing is meant to work like rewriting, NOT redirecting. Otherwise it does not work.

How to solve this in cPanel?

  • Create a subdomain of someshop
  • set Document Root to prestashop.domain.com

 

Edited by stifler97
Add solved tag (see edit history)

Share this post


Link to post
Share on other sites

Hi @stifler97

you should solve it by doing the following:

when creating the subdomains someshop.domain.com & anothershop.domain.com , point them to the physical path of  prestashop.domain.com

after this, when you will add these  URLs to the multistore configuration or Prestashop, they should work.

I hope that I could help.
Have a nice day, Leo.

  • Like 1

Share this post


Link to post
Share on other sites

Hi @Prestachamps😍❤️

I want to tell you that it worked for me pretty well and easy. I would like you to know that you are a master. Thanks a lot for helping. I hope one day I can get to a point in my life like the one you have reached in helping others and giving back to the community. Thank you very much for your time. You have just saved me.

  • Like 1

Share this post


Link to post
Share on other sites

  • stifler97 changed the title to [SOLVED] How to create multi stores in subdomains when Prestashop is also installed in subdomain?

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More