Jump to content

prestashop 1.7 how to force the final slash end url


Netteria.NET

Recommended Posts

Hello

How to make a prestashop 1.7.3 url  my_shop/brands/ instead of the  my_shop/brands?

Url my_shop/brands gives a 404 error:(

I tried to do something in htaccess but it gives me nothing. You have to reprogram in the code. How to do it?

I do not want 301 redirect only http 200

 

Best regards and thank you

  • Like 1
Link to comment
Share on other sites

I changed in the Dispatcher class in the loadRoutes method url_rewrite on brands / and works. But I have the impression that this is not the most elegant solution.
Of course, I will override this class so that there will be no problems when updating presty.

But maybe someone knows a better solution?

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...