Answer the question
In order to leave comments, you need to log in
How is a seo filter made, or a page filter in Django?
Good afternoon!
The question is
There is a product filter on the site When filtering,
the
link looks something like this:
This is how the filter works on 1C Bitrix
http://site.com/catalog/?color=red&width=12
http://site.com/catalog/color_red/width_12
Answer the question
In order to leave comments, you need to log in
1. learn how to route https://docs.djangoproject.com/en/3.1/topics/http/urls/ so that your "product filter" immediately generates the desired url
2. do it at the web server level, for example, rewrite in nginx , a quick crutch, but then why do you need django here, write in php.
3. switch to 1C Bitrix
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question