Jump to content

Edit History

Ali Samie

Ali Samie


Add solved tag

[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

 

Ali Samie

Ali Samie


Edited content after the problem is solved to increase readablity

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

 

Ali Samie

Ali Samie


Edited the title for better readabilty and meaning

Hi everyone.
We have domain.com as the main domain which has lots of data in it.
We have prestashop.domain.com as a subdomain which is also a subfolder of root folder in the server public_html folder and contains prestashop installation core.
We want to have multiple shops with the help of prestashop multistore in this way:
someshop.domain.com & anothershop.domain.com which are multi stores of prestashop.domain.com
I have read enough about documents. I need experts to answer if it is possible or not. Because in the documents it says it is possible and it is done automatically by prestashop.
Check this : https://doc.prestashop.com/display/PS17/Setting+a+shop's+URL#space-menu-link-content
But it is not working for me anyway. I have been trying a lot in cpanel and other stuff. we dont want to redirect someshop.domain.com to prestashop.domain.com/someshop . We already know that this is possible and works. but it is not what we want.

Ali Samie

Ali Samie

Hi everyone.
We have domain.com as the main domain which has lots of data in it.
We have prestashop.domain.com as a subdomain which is also a subfolder of root folder in the server public_html folder and contains prestashop installation core.
We want to have multiple shops with the help of prestashop multistore in this way:
someshop.domain.com & anothershop.domain.com which are multi stores of prestashop.domain.com
I have read enough about documents. I need experts to answer if it is possible or not. Because in the documents it says it is possible and it is done automatically by prestashop.
Check this : https://doc.prestashop.com/display/PS17/Setting+a+shop's+URL#space-menu-link-content
But it is not working for me anyway. I have been trying a lot in cpanel and other stuff. we dont want to redirect someshop.domain.com to prestashop.domain.com/someshop . We already know that this is possible and works. but it is not what we want.

Ali Samie

Ali Samie

Hi everyone.
We have domain.com as the main domain which has lots of data in it.
We have prestashop.domain.com as a subdomain which is also a subfolder of root folder in the server public_html folder and contains prestashop installation core.
We want to have multiple shops with the help of prestashop multistore in this way:
someshop.domain.com & anothershop.domain.com which are multi stores of prestashop.domain.com
I have read enough about documents. I need experts to answer if it is possible or not. Because in the documents it says it is possible and it is done automatically by prestashop.
Check this : https://doc.prestashop.com/display/PS17/Setting+a+shop's+URL#space-menu-link-content
But it is not working for me anyway. I have been trying a lot in cpanel and other stuff. we dont want to redirect someshop.domain.com to prestashop.domain.com/someshop . We already know that this is possible and works. but it is not what we want.

×
×
  • Create New...