G
G
Groofy2018-03-27 12:16:46
Search Engine Optimization
Groofy, 2018-03-27 12:16:46

How to remove extra parameters from URL?

Given
an online store with a bunch of catalogs Catalog
pages with pagination
Starting from the second page of pagination, URLs are added this filter/clear/apply/?PAGEN_2=2 The
number at the end is the number of the pagination page
The main page has a normal URL https://site .ru/catalog/gruppa/
problem
but also, the main page is available at the link https://site.ru/.../filter/clear/apply/?PAGEN_2= 1
i.e. available via two URLs
Task
Write a redirect that will fix the bug for all categories

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-04-17
@shambler81

little information, not enough for TK
At least you didn’t show the changing part of the url, then there is an example of several categories,
at least show how it should be and how it should be on several examples of urls so that you can understand the logic, while I see two different urls that are not related to each other with a friend,
https://site.ru/catalog/gruppa/ and https://site.ru/.../filter/clear/apply/?PAGEN_2=1
It also looks like you have Bitrix and 99% there is no problem, this is a problem of site settings and not .htaccess
If you remove the get parameter, then paging will not be available to you, as an option for loading on ajax
mydefile.ru/catalog, but then you will not be able to get a link to the 3rd page of the catalog.
In general, describe in more detail why you need it, or even better, just show the site and how you would like to see the urls

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question