I want to rewrite url like:
https://www.test.com/custom-parent-cat/sub-cat/10-12-14-17-19.html?cat=101
to
https://www.test.com/custom-parent-cat/sub-cat.html
Please help me to achieve this.
Thanks
I want to rewrite url like:
https://www.test.com/custom-parent-cat/sub-cat/10-12-14-17-19.html?cat=101
to
https://www.test.com/custom-parent-cat/sub-cat.html
Please help me to achieve this.
Thanks
Magento 2 reads parameters in the following format: somepage/param/param_value/
It ignores the question mark. In your situation you have 2 options to go:
For more information on this, please check:
Nginx - https://www.nginx.com/blog/creating-nginx-rewrite-rules/
Apache - https://httpd.apache.org/docs/2.4/rewrite/remapping.html
Please see my example on how to do this there: Configure front name in admin panel