Jump to content

How to remove .html from URL?


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...