Jump to content

How to set up multistore in BO & Cpanel?


Recommended Posts

New to Prestashop (moving over some stuff from Opencart) if I can get PS to work ....

 

This is my 3rd reinstall :( of PS since my two prior ones have behaved very strangely. So now I will try to do everything "by the book".

 

So one of the main questions is how to set up PS in Cpanel and BO for multistore. I have searched and searched but haven't found a good description.

 

Background:

- I'm on a hosted linux/apache server

- Physical location of installation is /public_html/shopX

- 1 PS installation 1.6.0.9 with 1 database

- URL Rewriting is active on server

 

What I want:

- Default shop: www.example.com/shopX

- Shop 1: www.cottonyoga.dk

- Shop 2: www.cottonyoga.eu

- Shop 3: www.cottonyoga.com

etc

 

Question 1:

So what should my settings be in BO for default shop, shop 1 etc?

Domain

Physical URL

Virtual URL

 

Question 2:

What should my settings be in Cpanel, and what function should I use (addon domains, parked domains or redirects) for default shop, shop 1 etc?

 

Thank you in advance for any reply or hints!

Edited by Joachim Torngren (see edit history)
Link to comment
Share on other sites

Ok after some testing this seems to work for me:

First of all there seems to be a difference if you have your Prestashop in the root directory or in a subfolder on your server:

A. Installed in root (public_html) directory: Use cPanel Parked domains function

B. Installed in subfolder (public_html/shopX) directory: Use cPanel Addon domains function

 

INSTRUCTION FOR B. SUBFOLDER SETUP:

 

Prestashop installation located at public_html/shopX

 

Step 1: Prestashop Backoffice (advanced parameters/multistore)

 

Default shop:

Domain:  www.example.com

Physical URL: /shopX/

Virtual URL: [nothing]

 

Shop 1:

Domain:  www.cottonyoga.com

Physical URL: /

Virtual URL: [nothing]

 

Step 2: cPanel (addon domains)

 

Default shop:

[No need to do anything]

 

Shop 1:

New Domain Name: cottonyoga.com

Subdomain/FTP Username: [could be whatever you want]

Document Root: public_html/shopX

 

After cPanel addon domain

cPanel will automatically create a redirect to [%{ENV:REWRITEBASE}index.php] from the .htaccess file created by Prestashop

Also there will be a lot of redirects (under CPanel-redirects) from the -htaccess file

 

Since I'm a Prestashop newbie could someone more experienced please verify that this has been done correctly? Then I place this as [sOLVED]  :huh:

Edited by Joachim Torngren (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Hi Joachim,

 

Thanks for this report.

 

I'm trying to set up a same kind of construction as you, but for me it's not working. I'm using also Cpanel. The only difference is that i don't have my main store in the root.

 

What I have:

 

Main shop:  www.example.com

Shop 2:       www.example2.com

 

 

 

Default shop:

Domain:  www.example.com

Physical URL: 

Virtual URL: [nothing]

 

Shop 1:

Domain:  www.example2.com

Physical URL: /

Virtual URL: [nothing]

 

 

According to you parking the domain would be enough. I did this but it doesn't work. So i tried the add on. Also no success.

 

I added on the domain and the changed the path of document root to the main store, but the link gets redirected to the main store.

 

Do you have any ID, what i'm doing wrong or what I can do to fix this?

Link to comment
Share on other sites

I'm not completely sure if you have your Prestashop installation in the root (/public_html) or in a directory/folder (/public_html/example)?

 

If root - use cPanel Parked Domains

If directory/folder - use cPanel Addon Domains

 

Please reply and I try to assist thereafter

Edited by Joachim Torngren (see edit history)
Link to comment
Share on other sites

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
×
×
  • Create New...