fruchtikus Posted May 6, 2015 Share Posted May 6, 2015 Hi, The reason why the images on a cms page are not displayed is the missed friendly rewrite rule generation in /classes/Tools.php This solution if for Prestashop 1.6.0.14: 1.) find line 2192: #2190: if (Shop::isFeatureActive()) #2191: fwrite($write_fd, $domain_rewrite_cond); #2192: fwrite($write_fd, 'RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]'."\n"); 2.) add following code after line number 2192: if (Shop::isFeatureActive()) fwrite($write_fd, $domain_rewrite_cond); fwrite($write_fd, 'RewriteRule ^[A-Za-z0-9-]+/img/cms/([_A-Za-z0-9-]+)\.(jpg|png|gif)$ %{ENV:REWRITEBASE}img/cms/$1.$2 [L]'."\n"); I' ve attached my Tools.php Tools.php 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