Answer the question
In order to leave comments, you need to log in
How to replace a bunch of urls with a 301 redirect?
There are urls like:
site.ru/abc/1
site.ru/abc/2
site.ru/abc/3
...
site.ru/abc/1-title-page
site.ru/abc/2-title-page
site.ru/abc/3-title-page
Answer the question
In order to leave comments, you need to log in
In php code
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://site.ru/abc/1-title-page");
die();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question