Jump to content

Multishop 404


Recommended Posts

Hi all.

 

I have some problem with configuring multishop.

I needed to have a multishop like this:

 

shop1: www.mysite.com

shop2: www.mysite.com/shop2

 

Using prestashop guide, I created shop2 (importing all but products and categories from shop1) and I set the URL at www.mysite.com/shop2.

The problem is that at www.mysite.com/shop2 I get the 404.

 

This page is not available

We're sorry, but the Web address you've entered is no longer available.

To find a product, please type its name in the field below.

 

Search our product catalog:

 

 

Shop1 works at www.mysite.com.

URL rewrite is on and works for products and categories of shop1.

.htacces was automatically set for:

 

RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.mysite.com$

RewriteRule . - [E=REWRITEBASE:/]

RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

and

# Dispatcher

RewriteCond %{REQUEST_FILENAME} -s [OR]

RewriteCond %{REQUEST_FILENAME} -l [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteCond %{HTTP_HOST} ^www.mysite.com$

RewriteRule ^.*$ - [NC,L]

RewriteCond %{HTTP_HOST} ^www.mysite.com$

RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]

RewriteCond %{HTTP_HOST} ^www.mysite.com/shop2$

RewriteRule . - [E=REWRITEBASE:/]

RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

 

I have the domain at godaddy but nameservers link to my current host, where i can find:

shop2.mysite.com CNAME www.mysite.com

and

List of sub-domains + DETAIL TARGET : shop2.mysite.com http://mysite.com/shop2

 

I've tried to move shop2 at www.mysite.com and shop1 at www.mysite.com/shop2.

In this case, I can see shop2 at www.mysite.com, but at www.mysite.com/shop2 I still get the 404.

 

I think there is an easy solution but I'm noob and I can't see it.

Thank you in advance for your answers and helps.

Link to comment
Share on other sites

Did you just copy your content to '/shop2' directory or did you actually run separate installation to this folder ? You probably get this error, because path of your data is invalid and there are still include lines which use old (original) path of where files were located.

Link to comment
Share on other sites

Thanks for the reply.

 

In reality there is no folder /shop2.

I followed the instructions HERE and they say:

 

Do not create any URL manually, either on your server or your computer: PrestaShop takes care of creating the URL for you on your server. When accessing this URL, PrestaShop will direct visitors to the correct store automatically.

 

If I access the folder /www via ftp, I see no folder /shop2.

Should there be? There are known limitations of hosts that can prevent PS to automatically create the folder?

 

Thanks,

Link to comment
Share on other sites

ok.

i made a backup.

i installed a clean 1.5.4.1 version.

i tried to create a new shop.

 

mysite.com/shop2 is still at 404!

should be a problem with my host (infomaniak)? should be that guide isn't reliable at

 

Do not create any URL manually, either on your server or your computer: PrestaShop takes care of creating the URL for you on your server. When accessing this URL, PrestaShop will direct visitors to the correct store automatically.

?

 

Thanks.

Link to comment
Share on other sites

  • 3 months later...

I did the exact same thing. I had the physical url folder name and the add on store name listed in the Physical URL field. My thought was that I was not using Virtual URLs. I listed the Physical URL folder name in the proper field and listed the add on store name in the Virtual URL field and it works as it was designed. Thanks so much!

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