Jump to content

Create SEO friendly links to shop category in front end


Recommended Posts

I've built a tiny module for PrestaShop that allows us to show all products on a page, using a query specific to our needs, and so far things look fairly ok.

 

https://newstore.personera.com/7J0A1B83X2D7/

 

I want to take things further a bit and allow us to show products by categories using a URL looking something like follows:

 

https://newstore.personera.com/the_shop/category/the_category

 

but off course this will cause a 404 error right of the bat. The other cheap alternative is to use a query to access it like this:

 

https://newstore.personera.com/the_shop?category=the_category

 

but I think this looks cheap, and isn't SEO friendly.

 

How do I go about getting PrestaShop to redirect the URL to the same front controller, which will take the /category/the_category URL sections into consideration when it fetches results from the database?

Link to comment
Share on other sites

×
×
  • Create New...