RewriteCond %{CF-Connecting-IP} ^XXX.YY.* RewriteCond %{X-Real-IP} ^XXX.YY.*
RewriteCond %{HTTP:CF-Connecting-IP} !^XXX\.YY\.
RewriteCond %{HTTP:X-Real-IP} !^XXX\.YY\.
RewriteEngine On
RewriteCond %{HTTP:X-Real-IP} !^XXX\.YY\.
RewriteRule (.*) - [F]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ https://site.ru/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://site.ru/$1 [R=301,L]
RewriteEngine On
RewriteCond %{THE_REQUEST} ^\S+\s+/([^.?]+)\.html
RewriteRule ^ https://wot-shop.icu/%1 [R=301,L]
RewriteCond %{HTTPS} =off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule (.*) https://wot-shop.icu/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.html [L]
RewriteEngine On
RewriteCond %{HTTP_COOKIE} !REG=
RewriteRule ^ http://example.com/reg [R=302,L]
Invalid command 'AddHandler\xe2\x80\x8b'
RewriteCond %{REQUEST_URI} ^(.*/)\d+-([^/]+\.html)$
RewriteRule ^ %1%2 [R=301,L]
RewriteRule ^(|.*/)\d+-([^/]+\.html)$ /$1$2 [R=301,L]
RewriteRule ^(et|ru)/catalog/kuldehted/sormused/pulma-sormused/?$ /$1/catalog/kuldehted/sormused/abielusormused [R=301,L]
RewriteRule ^(et|ru)/(catalog/kuldehted/sormused)/pulma-sormused/?$ /$1/$2/abielusormused [R=301,L]
В оригинале такие ссылки
https://site.ru/news/50/ostorozhno
нужны такие
https://site.ru/50-ostorozhno
желательно на конце со слешем или без, сейчас оба варианта работают.
RewriteRule ^(\d+)-([^/]+)$ news.php?id=$1&slug=$2
/
RewriteRule ^(\d+)-([^/]+)/$ news.php?id=$1&slug=$2
ErrorDocument 404 /notfound.php
RedirectMatch 301 ^/obshhaya-informatsiya/zemlya$ http://site.ru/obshhaya-informatsiya/zemlya/city
RedirectMatch 301 ^/(obshhaya-informatsiya/zemlya)$ http://site.ru/$1/city
RewriteRule ^(.*)$ ./index.php?page=$1
RewriteRule ^([^/.]+)/(\d+)$ index.php?page=$1&i=$2
RewriteRule ^([^/.]+)/?$ index.php?page=$1
RewriteCond page=$1&i=$2 ^(.+=[^&]+)
RewriteRule ^([^/.]+)(?:/(\d*))?$ index.php?%1
<Files "protected_file.php">
AuthName "Member Only"
AuthType Basic
AuthUserFile /etc/apache2/.htpasswd
require user Vasily
Satisfy All
</Files>
Satisfy Any
AuthName "Member Only"
AuthType Basic
AuthUserFile /etc/apache2/.htpasswd
require valid-user
Satisfy All