Jump to content

MultiStore - Unique Domains - CPanel - Cloud Flare


Recommended Posts

Hello All,

 

I am new to PrestaShop - I was giving it a test drive in comparison to my current setup and I am having a very difficult time with Multi Stores in regards to separate domains.  I have searched tirelessly here for 2 days for answers but do not seem to find anything exactly like I am looking for.

 

I am running v1.6 and followed this documentation for setup:

http://doc.prestashop.com/display/PS16/Managing+Multiple+Shops

 

This is where I am trying to get, and the problem I am having.

 

I have my main site as Site1.com/test and my second multi shop at Site2.com 

 

The hosting is Cpanel based and is VPS account so I have complete control. DNS is controlled via CloudFlare and points to the same IP on both domains, naturally. Updates/Changes in redirects and such are instant since I utilize CloudFlare.

 

I have tried with and without "parked domain" via cpanel but I still don't get the result I am looking for from items I found here.

 

I want/need Site2.com to display its unique URL once pointing to Site1.com -  If this is truely capable of PrestaShop multistore

 

Right now Site2.com just forwards to Site1.com/test and displays that in the address bar - I can't do that.

 

Please let me know if any details are needed for me - any assistance is largely appreciated!

 

Link to comment
Share on other sites

  • 2 weeks later...

I was never able to get any help on this - the prestashop community seems to have a lack of programmers, just folks citing manual information and trying to help - I mean that in a good way.  Prestashop has promise, one other thing I didn't like was you have to pay for EVERY feature that is common place (shipping, CC modules).

 

I went back to Magento with this new store.  I always like to try something new with each shop I open - happy to try presta again if I see this answered.

Link to comment
Share on other sites

one issue new multistore users will encounter is

 

browser cache

 

after setting up additional domain, clear browser cache.

 

note: cpanel park  to main installed domain is correct method (plesk = alias to main installed domain)

 

Thanks for getting back. I tried this several times, also used different browsers all to no avail. These are parked domains, cpanel appears to have the correct redirects and the dns seems to be correct.

 

What  is confusing me is if having selected the 'new' store you follow the link to my store from within prestashop, it all seems to work. It is only when I attempt to access the site via a browser address bar that the site displays the default site.

 

it is almost like a url forward is in place to the main site for the parked domain, which there is ....%{ENV:REWRITEBASE}index.php -  which prestashop places when you go multistore.

 

  • These stores are in the default group
  • They are exact copies
  • the url is set as main in both cases
  • the second store's url is parked on top of the first
  • cpanel shows temp redirects for the main store
  • cPanel shows a single pemenent redirect for the add on store

 

One last thing...might be nothing to do with it, but as I have been trying I now cannot access ether site via a mobile device, it returns a blank page - no errors...mobile theme is set up for phones and tablets, it used to work.

 

I am wondering if the installation/site(s) are confused, I certainly am! and it needs totally reindexing in some way, as despite my deleting sites the new store number is increasing (now at 7) when there is only the 2 sites configured.

 

Any suggestions appreciated.

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

gsretail.co.uk & thelemontreegiftshop.co.uk

 

add www to the front of your url's in navigation, that worked for me.

 

tip: you have enabled geo location, this is not advised as geolitecity.data file is 85%  accurate, hence you will disallow 'some' number of valid shopers.

  • Like 1
Link to comment
Share on other sites

p.s. when I wrote multishop for 1.4 (sort of famous for that), I ran into same issue, i.e. www not www...

 

I modified my domain look up to exclude the presence of www...fixed..but this is not native prestashop code

 

for your shop, you would want to use a redirect to match what you have in seo & urls, i.e. www or not www

 

for example:

# Redirect non-www to www:
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

# Redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
  • Like 1
Link to comment
Share on other sites

also another tip: to avoid duplicate content then 'never' mix more than one(1) gTLD (.com ex) or more than one of the same ccTLD (in your case you have two(2) .uk).  This is assuming of course that you are multiplexing same content across multiple domains and not two separate shops with different products etc.

 

happy day, el (mom says it is nap time).

Link to comment
Share on other sites

also another tip: to avoid duplicate content then 'never' mix more than one(1) gTLD (.com ex) or more than one of the same ccTLD (in your case you have two(2) .uk).  This is assuming of course that you are multiplexing same content across multiple domains and not two separate shops with different products etc.

 

happy day, el (mom says it is nap time).

on the www versus not...spot on so thanks you have answered my next question before I asked it :-) as I had tried to set the redirect but without success in htaccess using code found online (below the comment line of course)....just tried yours...success, really appreciated thanks

 

Still thinking about your last tip, not sure it has gone in ...still early in the UK. But your assumption re product's is correct.

 

So it would follow my next question would be, how can I meet this requirement going forward if as I plan I will have several shops each with parked / unique domains (mostly .co.uk)...which is what I want to do?

 

On the fame side ...pleased to know you...never met a star before but great to have your support...thanks again.

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

if products are the same and you are just  multiplexing same content then it's not recommended to use more than one ccTLD of same country.  I don't really see the point anyway...again rule one gTLD and multiple ccTLD's (but only one or each country).  That being said you could go regional, i.e. .eu

 

btw: it's not me thats famous, it's the module...sort of like how we lose our names and are as known as 'so and so's dad'. jajajaja

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...