Jump to content

broken css after activating SEO urls


Recommended Posts

Hi! After  activating SEO urls (v1.5.6.2), something went wrong in css.

 

Some modules css, don't get recognized. Server says it can found them. But the paths, even absolute paths, are just right (double checked)!!! The problem is relative to only theme ovewrite (es blockcart > themes/themename/css/modules/blockcart), but the even more strange thing is that not ALL the overridden theme's modules css are broken. Only a few.

Checked a lot also the modules code, controllers, etc... Can't find the problem

By disabling SEO urls, all goes just right.

But I'd like seo urls... :P

Any idea?

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

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_HOST} ^www.edizionilpuntodincontro.it$
RewriteRule ^.*$ - [NC,L]
RewriteCond %{HTTP_HOST} ^www.edizionilpuntodincontro.it$
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] 

These are the htaccess rules prestashop writes. Basically, the line that cause the issue is the last one. If I comment it out, css files are all found, but obviously other things get broken.

 

Maybe it doesn't recognize certain css files (only certain, quite strange) as regular files, so it tries to apply pretty urls rules and that cause the browser not to find them.

 

 

 

 

Link to comment
Share on other sites

do you have CCC activated? if so, try to turn it off just for the CSS files. Some templates have internal conflicts with CCC for CSS and CCC for js

In fact, it's the opposite: since it's an htaccess thing and for only certain css files, means path rewrite thing, I solved the problem by activating ccc: now htaccess doesn't have to deal with that paths anymore so errors are gone. Maybe not the definitive solution, but a good temporary one. Still, I'd really like to know why the hell only some paths don't work. It would probably be more clear if ALL the paths didn't work. Or at least, say, all the paths from the theme. But they are only few and also mixed theme/non-theme modules folders. Bah....

 

 

 

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