RewriteCond %{HTTP_HOST} ^(domain\.com) [NC]
RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L]
http://domain.com -> https://www.domain.com
или
https://domain.com -> https://www.domain.com
location / {
rewrite ^/(\d+/\d+/\d+\.png)$ /styles/$1 break;
proxy_pass https://backend;
}
RewriteEngine On
RewriteCond %{THE_REQUEST} [?&]id=(\d+)
RewriteRule ^(.+)/index.php /$1/%1/? [R=301,L]
RewriteRule ^(.+)/(\d+)/$ /$1/index.php?id=$2 [L]
<form action="https://yadecor.ru/" role="searchform" class="" method="get">
<div class="input-row">
<input type="text" value="" placeholder="Поиск" autocomplete="off" class="form-control" name="s">
<input type="hidden" name="post_type" value="post">
<button type="submit" class="btn filled">Поиск<i class="et-icon et-zoom"></i></button>
</div>
</form>
<input type="hidden" name="post_type" value="post">
.*
совпадает с любыми символами https://regex101.com/r/BZxfGu/1/
https://regex101.com/r/BZxfGu/2[^/]+
совпадает с любыми символами кроме /
server {
rewrite ^/catalog/(.*)-(.*)/2018/.*/$ https://example.ru/$1/$2/ permanent;
rewrite ^/catalog/(.*)-(.*)/2019/.*/$ https://example.ru/$1/$2/ permanent;
RewriteEngine on
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(videos/category/\d+)$ /$1?page_id=1 [R=301,L]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{THE_REQUEST} ^\S+\s+/([^?]*)
RewriteRule (.*) index.php?%1 [L,QSA]
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{DOCUMENT_ROOT}/public/$0 !-f
RewriteCond %{DOCUMENT_ROOT}/public/$0 !-d
RewriteRule .* /public/index.php?$0 [L,QSA]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule .* /public/$0 [L]
$_SERVER['REQUEST_URI']