Loki666 Posted August 1, 2011 Share Posted August 1, 2011 Hi there, I want romove .html from product URLs. What I did is edite Link.php and delete .html here: 66: public function getProductLink and here .htaccess RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] and its work perfect but CMS block not work properly and showing 404 error. How can i fix this? Prestashop 1.4.2.5 Akcesoria kuchenne < My shop on Prestashop 1.4.2.5, click on Test in footer to see the problem. Link to comment Share on other sites More sharing options...
Raphaël Malié Posted August 1, 2011 Share Posted August 1, 2011 Hi, if you can wait the 1.5 version which will be released in september, there will be a route system to make exactly what you want (you can edit rewrite patterns from backoffice). 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