location ^~ /upload {
location ~ \.(png|jpe?g|gif)$ {
}
return 403;
}
location ^~ /source {
location ~ \.(js|css)$ {
}
return 403;
}
RewriteEngine On
RewriteCond %{THE_REQUEST} " /pages/page_0\.aspx\?id_page=272&id_region=1 "
RewriteRule ^ https://newsite.ru/b.html? [L,R=301]
RewriteCond %{THE_REQUEST} " /pages/page_0\.aspx\?id_page=888&id_region=34 "
RewriteRule ^ https://newsite.ru/ccc.html? [L,R=301]
RewriteRule ^ https://newsite.ru/ [L,R=301]
RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)id_page=272($|&)
RewriteCond %{QUERY_STRING} (^|&)id_region=1($|&)
RewriteRule ^pages/page_0\.aspx$ https://newsite.ru/b.html? [L,R=301]
RewriteCond %{QUERY_STRING} (^|&)id_page=888($|&)
RewriteCond %{QUERY_STRING} (^|&)id_region=34($|&)
RewriteRule ^pages/page_0\.aspx$ https://newsite.ru/ccc.html? [L,R=301]
RewriteRule ^ https://newsite.ru/ [L,R=301]
RewriteEngine On
RewriteCond %{QUERY_STRING} ^/
RewriteRule ^(.*)$ /$1? [R=301,L]
str = Regex.Replace(
str,
@"(?sx)
(?=/\*[^+])
(?> (?'open'/\*)
| (?'-open'\*/)
| .
)+?
(?(open)(?!))",
""
);
RedirectMatch 301 ^/(.*length)-(.*)$ /$1_$2
RewriteEngine On
RewriteRule ^(.*length)-(.*)$ /$1_$2 [R=301,L]
RedirectMatch 301 ^/product/(.+(guide|bulbs))$ /$1
RewriteEngine on
RewriteRule ^product/(.+(guide|bulbs))$ /$1 [R=301,L]
location ~* \.(jpe?g|gif|png|svg)$ {
if ($arg_moderation = "on") {
rewrite ^ /upload/system/no-avatar.jpg break;
}
}
\s
c различными пробельными символами Юникода нужен модификатор /u.preg_match_all("/(\d{1,2}\s\d{3})/u", $row['toys'], $prices);
location /comment-subscriptions/ {
add_header X-Robots-Tag "noindex, nofollow" always;
}
location ~ \.php$ {
if ($arg_srsrc = "f") {
add_header X-Robots-Tag "noindex, nofollow" always;
}
RewriteCond %{THE_REQUEST} ^\S+\s+/index\.php\?(?=(|.*?&)route=bossblog/article[&\s])(?=(|.*?&)blog_article_id=1[&\s])
RewriteRule ^ https://site.ru/blog/1? [R=301,L]
^([^/]*)/([^/]*)/([^/]*)$
^(\d+)/(content)/(.+)$