M
M
miron1603892016-03-11 17:22:12
htaccess
miron160389, 2016-03-11 17:22:12

How to cut part of url and make a 301 redirect?

There is such a problem. Site stroy-krovlja.ru. On some categories, such a url appears stroy-krovlja.ru/manufacturer/aquasystem?prod=meta... Tell me how to remove the extra part of the url ?prod=metal-rainwater and leave stroy-krovlja.ru/manufacturer/aquasystem . As I understand it, this can be done with a 301 redirect, but I don’t know how.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor, 2016-03-11
@master2016

In your particular case, something like this
RewriteRule stroy-krovlja.ru/manufacturer/aquasystem?prod=meta ... stroy-krovlja.ru/manufacturer/aquasystem [L,R=301]
htaccess variables like HTTP_HOST etc.

M
miron160389, 2016-03-11
@miron160389

I need a redirect to similar links and not just one, but thanks anyway)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question