ECF Posted September 25, 2013 Share Posted September 25, 2013 (edited) Hello I am dealing with three boutiques where combinations and url rewriting are giving me headaches. In the SEO and URL section I am using {category}/{-:ean13}{rewrite}/ to rewrite my product URL however now when I modifiy a product and when I hit the preview button, the given URL is wrong and includes the .html ? The right url preview format should be : www.sitename.com/category/product-name instead I am getting www.sitename.com/category/product-name.html Any ideas on how I could fix this issue ? Also, and I really dont understand why but my products combinations are available back-end, however nowhere to be seen anymore front-end ??? If anyone resolved this issue recently I would appreciate some tips or advices on how to deal with it. My prestashop boutique version is 1.5.4.1 Thank you Edited September 25, 2013 by dewey (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 you have to edit dispatcher. open file classes/Dispatcher.php there is a code: 'rule' => '{category:/}{id}-{rewrite}{-:ean13}.html', just remove .html Link to comment Share on other sites More sharing options...
ECF Posted September 25, 2013 Author Share Posted September 25, 2013 Hello Thanks for your anwer ! Is it the same modification to apply if {category}/{rewrite}/ is used instead of {category}/{-:ean13}{rewrite}/? Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 as far as i know, you have to use id number, without id it will not work unfortunately it's because controllers are based on product ID. if you want to hide ID - you have to edit controllers, there is no way to achieve it with default configuraiton tools Link to comment Share on other sites More sharing options...
ECF Posted September 25, 2013 Author Share Posted September 25, 2013 So I should use {category}/{-:ean13}{rewrite}/ for my SEO options And 'rule' => '{category:/}{id}-{rewrite}{-:ean13}', in my dispatcher ? Right now if I just remove the .html, no changes are noticed, even if I clear all cache. Link to comment Share on other sites More sharing options...
Recommended Posts