Multiple Shop Virtual URL cannot load CSS files

In this forum you can post anything related to PrestaShop Modules/Addons from Agile Addons-Modules.Com.

If you need support for any module/addon from Agile Addons-Module.Com, please post it here. We will respond as soon as possible. Usually within one business day.

Please indicate the PrestaShop version, product name. product version, and if possible your order # to get a prompt response.

Moderator: jeffayao_1666

Multiple Shop Virtual URL cannot load CSS files

Postby pala_3737 » Thu Feb 27, 2014 4:41 am

Hi,

Sorry for bombarding you with questions as I am configuring all 10 modules at once :)

After installing Multiple Shop module, it created a virtual shop for the existing seller.
I visited the shop page, and the HTML portion came up but with no styles. It is searching for CSS files under /virtual_Store_url/ instead of / therefore all the CSS files are returning 404 rendering the page broken. How can fix this?

Thank you
pala_3737
 
Posts: 17
Joined: Thu Feb 27, 2014 3:23 am

Re: Multiple Shop Virtual URL cannot load CSS files

Postby shokinro » Thu Feb 27, 2014 4:45 am

thanks for using our modules.
please try following steps to see if it fixes the issue
- switch off and then switch back to on of SEO friendly URL at Preference - SEO & URLs tab at back office
this trigger .htaccess to be re-generated to resolve the 404 errors.

- click your store logo to back to your home page first and try to access other links again.
- try to clear your browser caches
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: Multiple Shop Virtual URL cannot load CSS files

Postby pala_3737 » Thu Feb 27, 2014 4:56 am

This did not work.

When the friendly URLs are off, everything works.
When the Friendly URLs are on, all the pages work except the reference files (CSS/image/JS) in the seller shop pages.
Again, the page loads, it's the CSS files giving 404.
pala_3737
 
Posts: 17
Joined: Thu Feb 27, 2014 3:23 am

Re: Multiple Shop Virtual URL cannot load CSS files

Postby pala_3737 » Thu Feb 27, 2014 5:22 am

I checked the .htaccess file, the rules seem to be there:

RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^example-seller-account$ /example-seller-account/ [L,R]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^example-seller-account/(.*) /$1 [L]


BUT, all the other rules are repeating after each store.

e.g.

#std rules
#IE rules
#STORE 1 rules
#std rules
#IE rules
#STORE 2 rules
#std rules
#IE rules
...
pala_3737
 
Posts: 17
Joined: Thu Feb 27, 2014 3:23 am

Re: Multiple Shop Virtual URL cannot load CSS files

Postby pala_3737 » Thu Feb 27, 2014 7:14 pm

Looks like it's nginx, rules in .htaccess don't work. Finding a workaround. Thanks.
pala_3737
 
Posts: 17
Joined: Thu Feb 27, 2014 3:23 am


Return to Support forum - Agile PrestaShop Modules/Addons

Who is online

Users browsing this forum: Google [Bot] and 11 guests