RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteRule ^wp\-content/uploads/2020/11/Presentation\-GG\.pdf$ https://w\-dprint.ru/wp\-content/uploads/2020/11/Presentation\-GG.pdf? [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteCond %{QUERY_STRING} (?:^|&)C\=N;O\=D(?:$|&)
RewriteRule ^feed/$ https://w\-dprint.ru/feed/?C=N;O=D [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteCond %{QUERY_STRING} (?:^|&)C\=M;O\=A(?:$|&)
RewriteRule ^feed/$ https://w\-dprint.ru/feed/?C=M;O=A [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteRule ^feed/$ https://w\-dprint.ru/feed/? [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteCond %{QUERY_STRING} (?:^|&)C\=M;O\=D(?:$|&)
RewriteRule ^feed/$ https://w\-dprint.ru/feed/?C=M;O=D [L,R=301]
<div class="d-flex justify-content-center">...</div>
RewriteCond %{HTTP_HOST} ^w\-dprint\.ru$
RewriteRule ^plotternaya\-rezka$ https://www.w\-dprint.ru/? [L,R=301]
find . -type f -name '[0-9][0-9]\.txt' -exec bash -c 'mv $0 0${0#./}' {} \;
find . -type f -name '[0-9]\.txt' -exec bash -c 'mv $0 00${0#./}' {} \;
[bitrix@centos-4gb-hel1-1 test]$ ls
10.txt 1.txt 2.txt 333.txt
[bitrix@centos-4gb-hel1-1 test]$ ls
001.txt 002.txt 010.txt 333.txt
find
-поиск рекурсивный.
где -type f
- только файлы-name
- имя файла в данном сулчае ругулярка -exec
выполнить с найденм, опция самого find -bash -
bash ( поскольку нам нужно удалить ./ из имени файла а сам find это может сделать но нам нужно и оставить предидущий вариант для mv а тут уже все ){}
подставить в exec вывод find\;
экранируем и закрываем findRewriteCond %{QUERY_STRING} (?:^|&)pa_brands\=mercury\-medical(?:$|&)
RewriteRule ^product\-category/cpap/$ /catalog/sistemy\-dlya\-cpap\-terapii/? [L,R=301]
# 301 --- http://www.test3.com/faq.html?faq=13&layout=bob => bbq.html
RewriteCond %{QUERY_STRING} (?:^|&)faq\=13(?:$|&)
RewriteCond %{QUERY_STRING} (?:^|&)layout\=bob(?:$|&)
RewriteRule ^faq\.html$ /bbq.html? [L,R=301]
RewriteRule ^9010\-2/veb\-kamery$ /9010\-2/veb\-kamery/9010\-2/veb\-kamery? [L,R=301]
RewriteCond %{REQUEST_URI} ^/dir1/(.*)$
RewriteRule ^(.*)$ /dir2/%1 [R=301,L]