Jump to content

404 error Multistore


J Contreras

Recommended Posts

 

Hello, 

I have the following problem, I create a multistore in my main store, when creating the url www.mydomain.cl/new-store-name, and loading the page, the structure of the store appears without images, without design (attached image) and at the same time an infinity of console errors with "Could not load the resource: the server responded with a status of 404 ()"

What step could be missing in the creation of this multistore?

Will it be a problem in the htaccess? I appreciate your answers

screencapture-healingmagick-cl-box-suscripcion-index-php-2020-08-26-13_49_44.png

Edited by J Contreras
translate (see edit history)
Link to comment
Share on other sites

  • 10 months later...
8 minutes ago, LazyCircles said:

Hello,

I'm facing the exact same problem, did you find a solution? 

Kind regards,

Can you post a link to your store? Are you using any short urls, image zoom modules? Could you disable Smarty cache for JS  and clear PrestaShop cache?

Link to comment
Share on other sites

5 minutes ago, ComGrafPL said:

Can you post a link to your store? Are you using any short urls, image zoom modules? Could you disable Smarty cache for JS  and clear PrestaShop cache?

Hi ComGrafPL,

No design/url modules installed, only modules oriented for marketplace connection. 

I have two different shop groups

1. B2B

1.1 - b2b.mydomain.com (works fine)

2. Retailers

2.1 - mp.mydomain.com (works fine)

2.2 - mp.mydomain.com/marketplace1 (virtual uri) (loads content, broken links)

2.3 - mp.mydomain.com/marketplace2 (virtual uri) (loads content, broken links)

Did Cache reset and .htaccess regeneration many times, no sucess. 

I'm facing the same problem the OP describes. 

Thank you in advance. 

KR,

 

 

 

 

Link to comment
Share on other sites

Hi again,

I've solved my problem and it was related with .htaccess! I don't know why but I tried evertying to regenerate it except one thing.. I've grabbed another .htaccess from a developer instance that I have and replaced with the one that was causing problem, then I generated via friendly url and boom its working.. 

Would be intereseting to know what's causing this issue since many people in the forum are having this problem.

GL all.

KR

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

  • 8 months later...

Hello,

I have this problem

PS version 1.7.8.3

localhost + docker

I had 404 error and when I upload this information on my htaccess :

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # match .css and .js file and add the END flag so no more rules will be applied.
RewriteRule "^(.*)\.css$" - [END]
RewriteRule "^(.*)\.js$" - [END]

It is ok but no css and js, and my principal shop didn't have pictures 😕

I am lost

Please if someone can help me :(

error prestashop.jpg

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

5 minutes ago, Futamiya said:

Hello,

I have this problem

PS version 1.7.8.3

localhost + docker

I had 404 error and when I upload this information on my htaccess :

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # match .css and .js file and add the END flag so no more rules will be applied.
RewriteRule "^(.*)\.css$" - [END]
RewriteRule "^(.*)\.js$" - [END]

It is ok but no css and js, and my principal shop didn't have pictures 😕

I am lost

Please if someone can help me :(

error prestashop.jpg

Hi Futamiya, 

The problem I had was some time ago, i don't remember that well :'D

Did you hard clear cache ? var/ and rename cache folder for example: 1_cache

Did you try to replace your .htacces with some standard one and then disable->enable friendly urls and see what happens? 

(Don't forget to back up)

Hope it helps you out, if it doesn't help show a print of the console, you should have a bunch of 404's for the images. 

KR,

Bruno

 

 

Link to comment
Share on other sites

Hello,

I tried what you said and all my shop are Internal server error

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

 

😕

Link to comment
Share on other sites

1 minute ago, Futamiya said:

Hello,

I tried what you said and all my shop are Internal server error

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

 

😕

That error means .htaccess isn't working properly. 

Could you try this one? Replace yourdomain.com with the domain you want and change file name to ".htaccess"

 

ps_std_htaccess.txt

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