RewriteRule ^articles/\xAA\xDD/$ /articles/ [L,R=301]
RewriteRule ^articles/.*[^\s\w/] /articles/ [L,R=301]
/.htaccess
RewriteEngine On
RewriteRule .* frontend/$0 [L]
/frontend/.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.html [L]
/api/.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
<Files "users.json">
deny from all
</Files>
^amp
будет работать в RewriteRule, а для RedirectMatch нужно добавить "/" ^/amp
RedirectMatch 301 ^/amp/[0-9]*\.html$ https://site.ru/
RewriteRule ^amp/[0-9]*\.html$ https://site.ru/ [R=301,L]
AddDefaultCharset UTF-8
RewriteEngine On
RewriteCond %{HTTP_REFERER} ok\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} mamba\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} facebook\.com [NC]
RewriteRule ^ - [F]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /doma/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /doma/index.php [L]
</IfModule>
# END WordPress
DirectorySlash Off
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ https://site.ru/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[^?]+// [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .* https://site.ru/$0 [R=301,L]
RewriteCond %{THE_REQUEST} ^\S+\s([^?\s]*?)(/index)?\.html
RewriteRule ^ https://site.ru%1 [R=301,L,NE]
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*) /$1.html [L]
^user/(\d+)
поставить первым.Options +FollowSymLinks
RewriteEngine On
RewriteRule ^user/(\d+)/$ index.php?module=user&id=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ index.php?module=$1 [L,QSA]
^(.{10,})/(.+)/$
^(.+)/([^/]{10,})/$
RewriteEngine on
RewriteRule ^admin($|/) - [L]
RewriteRule ^$ index.php?module=page&url=main [L,QSA]
RewriteRule ^([^/]*)/?$ index.php?module=category&url=$1 [L,QSA]
RewriteRule ^([^/]*)/([^/]*)/?$ index.php?module=page&url=$1 [L,QSA]
admin/run.php
успешно совпадает с шаблоном ^admin/(.*)$
и происходит бесконечный цикл.admin/run.php
RewriteCond %{REQUEST_URI} !^/admin/run\.php
RewriteRule ^admin/(.*)$ /admin/run.php?request=$1 [QSA,L]
RewriteCond $1 !^run\.php
RewriteRule ^admin/(.*)$ /admin/run.php?request=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/(.*)$ /admin/run.php?request=$1 [QSA,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^admin/(.*)$ /admin/run.php?request=$1 [QSA,L]