RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(catalog/[^/]+/filter/color-is-[^/]+/apply/)$ /$1?view=offers [R=301,L] / и /$1?RewriteRule !(^$|.*\.(css|jpg|gif|ico|png)) https://graniidist.ee/ [R=301,L]RewriteRule ^(.*)$ https://graniidist.ee/$1? [R=301,L] на всех страницах сайта кроме папки /wp-admin/
RewriteCond %{REQUEST_URI} !^/wp-admin($|/)
RewriteCond %{QUERY_STRING} !^$
RewriteRule ^(.*)$ /$1? [R=301,L] .php.url: 'handler',RewriteCond %{REQUEST_METHOD} !POSTRewriteEngine On
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{THE_REQUEST} ([^\s]*)\.php(\?[^\s]*)?
RewriteRule (.*) %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^.*$ $0.php [L,QSA]RewriteRule !(^$|.*\.(css|jpg|gif|ico|png)) / [R=301,L]
/form1.php будет обработан этим правилом.RewriteCond %{REQUEST_URI} !^/form1\.phpRewriteCond %{REQUEST_METHOD} !POST map $http_host $domain_lang {
~(?i)^(?>www\.|)([a-z]+)\.site\.ru$ $1;
}
server {
location @php {
fastcgi_param DOMAIN_LANG $domain_lang; RewriteEngine On
RewriteRule ^mypanel/([^/]+)/(.+)/$ /mypanel/index.php?page=$1&target=$2 [L]RewriteEngine On
RewriteRule ^([^/]+)/(.+)/$ index.php?page=$1&target=$2 [L] AddDefaultCharset UTF-8
RewriteEngine on
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^.]+)$ $1.php [L]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{THE_REQUEST} \.php
RewriteRule ^(en/|ua/|) $1404.php [L]RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
RewriteRule ^([^.]+)\.html$ https://alp-sity.ru/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.html [L]
/catalog на /catalog/, если это существующий каталог. Т.е. нужен DirectorySlash Off, чтобы не было /catalog/.htmlDirectoryIndex index.html
DirectorySlash Off
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} ^GET\ ([^?]*?)(/index)?\.htm
RewriteRule ^ %1 [L,R,NE]
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule ^([^.]+)$ $1.html [L]