RedirectMatch 301 ^/articles/other/page/\d+/$ /all/
RewriteEngine On
RewriteRule ^articles/other/page/\d+/$ /all/ [R=301,L]
https://
.RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?kamen46\.ru$ [NC]
RewriteRule ^(.*)$ https://xn--46-6kcijfxfggqnar4a5o.xn--p1ai/$1 [R=301,L]
RewriteRule ^(.*[^/])$ $1/ [L,R=301]
RewriteRule ^(.*[^/])$ https://site.ru/$1/ [L,R=301]
RewriteCond %{THE_REQUEST} " /index\.php\?route=extension/(xbundle|product_bundle&bundle_id=2) "
RewriteRule ^ - [R=404,L]
DirectorySlash off
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)\.html /$1 [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/$0.html -f
RewriteRule .* /$0.html [L]
^$
совпадает только для главной страницы.^
или $
. Тогда шаблон будет совпадать для любой страницы, в том числе и для /3.html
.RewriteCond %{THE_REQUEST} "!^\S+ /3\.html"
RewriteRule ^ /3.html [L,R=301]
RewriteCond %{REQUEST_URI} !^/3\.html$
RewriteRule ^ /3.html [L,R=301]
RewriteCond %{REQUEST_URI} !=/3.html
RewriteRule ^ /3.html [L,R=301]
RewriteRule !^3\.html$ /3.html [L,R=301]
# https://city.site.com/search/
RewriteCond %{HTTP_HOST} ^(?>www\.|)([\w-]+)\.site\.com$ [NC]
RewriteRule ^search/$ list.php?crt_city=%1 [L,QSA]
# https://city.site.com/
RewriteCond %{HTTP_HOST} ^(?>www\.|)([\w-]+)\.site\.com$ [NC]
RewriteRule ^$ st.php?crt_dealer=%1 [L,QSA]
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule (.*) index.php?q=$1 [L]
?q=
RewriteRule ^news/2021/professor-bez-shtanov\.html$ https://www.crawler.pro/news/2021/produser-dlya-marketologa/professor-bez-shtanov.html [R=301,L]
RewriteCond %{REQUEST_URI} !/gorod_is_
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !/gorod_is_
RewriteRule ^(.*[^/])$ $1/ [L,R=301]
RewriteCond %{QUERY_STRING} ^SMARTY_DEBUG
RewriteRule ^category/$ https://site.ru/category/? [R=301,L]
RewriteCond %{THE_REQUEST} ^\S+\s/category/\?SMARTY_DEBUG
RewriteRule ^ https://site.ru/category/? [R=301,L]
RewriteEngine on
RewriteCond %{QUERY_STRING} !^get=[a-zA-Z0-9-_]+$
RewriteRule ^money\.php - [R=404,L]
ErrorDocument 404 /file.html
RewriteEngine on
RewriteRule ^(katalog/[^.]+?)/?$ https://www.site.ru/$1.html [R=301,L]
All
. Если переключить на Any
, то будет поведение как нужно.AuthType Basic
AuthName "Restricted Resource"
AuthUserFile /var/www/.htpasswd
Require valid-user
Order Allow,Deny
Allow from 192.168.1.2
Satisfy Any
<RequireAll>
и <RequireAny>
By default all Require directives are handled as though contained within a<RequireAny>
container directive. In other words, if any of the specified authorization methods succeed, then authorization is granted.
<RequireAny>
.AuthType Basic
AuthName "Restricted Resource"
AuthUserFile /var/www/.htpasswd
Require valid-user
Require ip 192.168.1.2