stratboy Posted February 24, 2014 Share Posted February 24, 2014 (edited) 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 problemBy disabling SEO urls, all goes just right.But I'd like seo urls... Any idea? Edited February 24, 2014 by stratboy (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted February 24, 2014 Share Posted February 24, 2014 try this: turn on SEO friendly url's. then let's clear smarty cache http://screencast.com/t/XwXwYXz4 now clear your browse cache or visit your shop and hit f5. Link to comment Share on other sites More sharing options...
stratboy Posted February 25, 2014 Author Share Posted February 25, 2014 try this: turn on SEO friendly url's. then let's clear smarty cache http://screencast.com/t/XwXwYXz4 now clear your browse cache or visit your shop and hit f5. thank you, but it doesn't work Link to comment Share on other sites More sharing options...
stratboy Posted February 25, 2014 Author Share Posted February 25, 2014 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 More sharing options...
jordiob Posted February 25, 2014 Share Posted February 25, 2014 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 Link to comment Share on other sites More sharing options...
stratboy Posted February 25, 2014 Author Share Posted February 25, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now