Page 1 of 1

CSS does not load page on SEO URL

Posted: Fri Aug 26, 2011 11:14 pm
by fullfatstudios
Hi there,

I have created the .htaccess file necessary for seo url's and applied it in the settings page.

When I click on:
http://www.sevenwaysclothing.com/shop

It works fine, however if you select the product in this category.. the css does not load in the page?

It is something to do with the SEO url as when I turn it off, everything works fine.

Please could you help?

Many thanks
Ollie

Re: CSS does not load page on SEO URL

Posted: Fri Aug 26, 2011 11:15 pm
by fullfatstudios
http://www.sevenwaysclothing.com/shop/tshirts

the link that doesn't load the css

Re: CSS does not load page on SEO URL

Posted: Fri Aug 26, 2011 11:33 pm
by fullfatstudios
FIXED ++++

in header.tpl of the theme.. I added a / at the beginning of each js and css link.

Everything then loads.

Re: CSS does not load page on SEO URL

Posted: Fri Sep 26, 2014 3:01 am
by uglyeoin
I installed it clean without anything extra, just the plain old setup and had this problem too. In fact the installer it's self also had no CSS. Do you have any ideas?

Re: CSS does not load page on SEO URL

Posted: Mon Jun 20, 2016 12:10 pm
by adriancblack
It's morning already and exhausted of searching online.
here it is:
1. opencart 2.2.0.0
2. url rewrite on
3. ssl enabled and working
4. all pages work except when you get to a sub-category, when the url becomes /category/subcategory
5. the page still loads for the subcategory, but all the internal links to css, js, img now have the category added to the url, therefore all the styles, images is gone.
6. here's the htaccess file:

Code: Select all

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
7. this is the site in question: https://fox-puzzles.com/
8. this is a page that works: https://fox-puzzles.com/tablet
9. here's a page that doesn't work: https://fox-puzzles.com/tablet/samsung-galaxy-tab-10-1

here's a screenshot of the errors:
Image

And changing the header.tpl by adding / doesn't help ... there are still images that are pulled dynamically from other tpl files and those will still not load.

any ideas guys?

Re: CSS does not load page on SEO URL

Posted: Tue Dec 11, 2018 4:37 pm
by onoriotorti
adriancblack wrote:
Mon Jun 20, 2016 12:10 pm
It's morning already and exhausted of searching online.
here it is:
1. opencart 2.2.0.0
2. url rewrite on
3. ssl enabled and working
4. all pages work except when you get to a sub-category, when the url becomes /category/subcategory
5. the page still loads for the subcategory, but all the internal links to css, js, img now have the category added to the url, therefore all the styles, images is gone.
6. here's the htaccess file:

Code: Select all

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
7. this is the site in question: https://fox-puzzles.com/
8. this is a page that works: https://fox-puzzles.com/tablet
9. here's a page that doesn't work: https://fox-puzzles.com/tablet/samsung-galaxy-tab-10-1

here's a screenshot of the errors:
Image

And changing the header.tpl by adding / doesn't help ... there are still images that are pulled dynamically from other tpl files and those will still not load.

any ideas guys?
did you ever fix this issue.
I'm having the same problem at the moment.

Re: CSS does not load page on SEO URL

Posted: Sat Apr 17, 2021 12:21 am
by P_mudev
Hello,
I have the same problem and I am wondering how to fix this?