[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?
- Check and followed: Prestashop Docs for PS17: Setting a shop's URL
-
Created multiple shop in prestashop.domain.com like:
- someshop.domain.com
- anothershop.domain.com
- This is the setting for someshop.domain.com :
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
.png.022b5452a8f28f552bc9430097a16da2.png)