RewriteCond %{REQUEST_URI} ^/catalog/perchatki/$1 RewriteRule ^(.*)$ /catalog/ekipirovka/perchatki/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/catalog/perchatki/(.*)
RewriteRule ^(.*)$ /catalog/ekipirovka/perchatki/%1 [R=301,L]
RewriteRule ^(catalog)/(perchatki/.*)$ /$1/ekipirovka/$2 [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} "^GET /CMS/ "
RewriteRule ^ / [R=301,L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /CMS/index.php [L]
</IfModule>
import re
m_list = ["желтый\?", "красный\?", "синий\?"]
data = input().lower()
a = re.search("|".join(m_list), data)
if a:
print("Есть вхождение")
# Переезд на https
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# Убираем www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://site.ru/$1 [R=301,L]
RewriteCond %{QUERY_STRING} (?:^|&)(id=\d+)
RewriteRule ^catalog\.php$ http://site.ru/%1? [L,R=301]
(gc source.xml -Encoding UTF8 | out-string) -replace '(?s).*?(?=<xml_catalog)', '' -replace '(?s)(?<=<catalog>).*?(?=<items>)', '' >out.xml
RewriteRule ^uploads/(.+)$ https://site.ru/uploads/$1 [QSA]
RewriteRule ^(uploads/.+)$ https://site.ru/$1 [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^page-cache/(.*?)(\.html|$) http://site.com/$1 [R=301,L]
RewriteRule ^$ page-cache/pc__index__pc.html [L]
RewriteCond %{DOCUMENT_ROOT}/page-cache/$1.html -f
RewriteRule (.+) page-cache/$1.html [L]
DirectorySlash Off
ErrorDocument 404 /404.html
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} "^\S+ /([^?.]+)\.html"
RewriteRule ^(?:index|([^.]+))\.html$ https://zaoks.ru/$1 [R=301,L]
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://zaoks.ru/$1 [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule ^([^.]+)$ /$1.html [L]
<Files ~ "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</Files>