Page 1 of 1

Multiple Shop Virtual URL cannot load CSS files

PostPosted: Thu Feb 27, 2014 4:41 am
by pala_3737
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

Re: Multiple Shop Virtual URL cannot load CSS files

PostPosted: Thu Feb 27, 2014 4:45 am
by shokinro
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

Re: Multiple Shop Virtual URL cannot load CSS files

PostPosted: Thu Feb 27, 2014 4:56 am
by pala_3737
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.

Re: Multiple Shop Virtual URL cannot load CSS files

PostPosted: Thu Feb 27, 2014 5:22 am
by pala_3737
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
...

Re: Multiple Shop Virtual URL cannot load CSS files

PostPosted: Thu Feb 27, 2014 7:14 pm
by pala_3737
Looks like it's nginx, rules in .htaccess don't work. Finding a workaround. Thanks.