Erik Posted August 20, 2008 Share Posted August 20, 2008 Dear PrestaShop users!Does anyone know how to enable complete mod_rewrite for pretty url.If I enable pretty url in prestashop admin control panel it still showsdomain_name.com/3-accessories - should be domain_name.com/accessoriesdomain_name.com/7-ipod-touch.html - should be domain_name.com/ipod-touchdomain_name.com/about-us.php - should be domain_name.com/about-usBold text shows a problem!In .htaccess, in root directory of a prestashop I have # URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpAny suggestions most welcome! Link to comment Share on other sites More sharing options...
Erik Posted August 29, 2008 Author Share Posted August 29, 2008 Anyone knows the solution? Link to comment Share on other sites More sharing options...
Paul C Posted August 29, 2008 Share Posted August 29, 2008 I could do it, but it means modifying the core prestashop files, which doesn't seem wise given that upgrades will no doubt be coming thick and fast over the next few months. Perhaps this is more a feature request to improve the "pretty url" function?Paul Link to comment Share on other sites More sharing options...
Erik Posted August 29, 2008 Author Share Posted August 29, 2008 Paul C thanks for your promt reply. If this is the case.. I'll move this topic to future request. Link to comment Share on other sites More sharing options...
fabiano_albernaz Posted October 15, 2008 Share Posted October 15, 2008 I have almost the same problemURL REWRITE WITHOUT IDHello Sirs,I wanna know how to put URL rewrite WITHOUT the ID of catalogue/products Example:without ID http://localhost/prestashop_1.0/accesorios (yes, what i want!!!) http://localhost/prestashop_1.0/ipod-touch.html with ID (default in prestashop)http://localhost/prestashop_1.0/3-accesorios (no!!!) http://localhost/prestashop_1.0/7-ipod-touch.html Thankx in advance,FA============================================Bonjour, Je veux savoir comme je programme le module de URL simplifiée SANS le ID des catalogues/produits … par example: sans ID http://localhost/prestashop_1.0/accesorios (oui) http://localhost/prestashop_1.0/ipod-touch.html avec ID http://localhost/prestashop_1.0/3-accesorios (non) http://localhost/prestashop_1.0/7-ipod-touch.html Merci beaucoups Cordialement, Link to comment Share on other sites More sharing options...
Patric Posted October 15, 2008 Share Posted October 15, 2008 I have almost the same problemURL REWRITE WITHOUT ID As I said you in the French section, Bruno already answered to this question here. Link to comment Share on other sites More sharing options...
supraonline Posted December 11, 2012 Share Posted December 11, 2012 Change the next: override/classes/tools.php Rewrite the file: <?php class Tools extends ToolsCore { public static function apacheModExists($name) { return true; } } ?> Link to comment Share on other sites More sharing options...
effetreweb Posted December 12, 2012 Share Posted December 12, 2012 Dear PrestaShop users lafter putting on the server local installation of prestashop 1.5.2.0 I have these two problems: 1) I can not go into administration 2) I can not see the frontpage because I get the same URL in my local Thanks for your help Link to comment Share on other sites More sharing options...
benjamin utterback Posted December 12, 2012 Share Posted December 12, 2012 Hi effetreweb, please make a new thread for a new topic and we will be happy to help. You can also read the Rules and Regulations Pinned in "General Discussion" 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