https://site.ru -> https://site.ru/
/
после site.ru./
не работает.https://site.ru/path?query
RewriteCond %{REQUEST_URI} ^/.*$
.*
означает ноль или более любых символов.https://site.ru/
RewriteCond %{QUERY_STRING} ^$
https://site.ru/
.php/
, то в конфиге location ~ [^/]\.ph(p\d*|tml)$
$
location / {
try_files $uri $uri/ /index.php?$args;
location ~ [^/]\.ph(p\d*|tml) {
try_files /does_not_exists @php;
}
location @php {
try_files $uri =404;
на try_files $fastcgi_script_name =404;
server { }
где listen 11.11.11.11:443 ssl;
location / {
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @php;
}
try_files $uri $uri/ /index.php?$args;
location / {
try_files $uri $uri/ /index.php?$args;
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @php;
}
In .htaccess files, the maximum length is 8190 characters
RewriteCond %{QUERY_STRING} ^(ID=6992&PRODUCT)=6905$
RewriteRule ^collections_qr/collection_detail\.php$ /$0?%1=6856 [R=301,L]
RewriteCond %{QUERY_STRING} ^(ID=6992&PRODUCT)=100$
RewriteRule ^collections_qr/collection_detail\.php$ /$0?%1=701 [R=301,L]
RewriteCond %{QUERY_STRING} ^(ID=6992&PRODUCT)=200$
RewriteRule ^collections_qr/collection_detail\.php$ /$0?%1=702 [R=301,L]
RewriteCond %{QUERY_STRING} ^(ID=6992&PRODUCT)=300$
RewriteRule ^collections_qr/collection_detail\.php$ /$0?%1=703 [R=301,L]
RewriteCond "%{QUERY_STRING} 6905=>6856 100=>701 200=>702 300=>703" "^(ID=6992&PRODUCT=)(\d+) .*? \2=>(\d+)"
RewriteRule ^collections_qr/collection_detail\.php$ /$0?%1%3 [R=301,L]
#перенаправление с http на https
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# редирект с www на без-www
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP
RewriteRule ^index\.php$ https://vektepla.by/ [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP
RewriteRule ^index\.html$ https://vektepla.by/ [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php|html)\ HTTP
RewriteRule ^index\.(php|html)$ https://vektepla.by/ [R=301,L]
# редирект с www на без-www
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://vektepla.by/$1 [R=301,L]
#перенаправление с http на https
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://vektepla.by/$1 [L,R=301]
[''8'']
и 'Brand_new<<' New'>>New'
(?:'...|"...)
\$status\['[^']+'\][^'"]*(?:'\K(?:[^']|'')+|"\K[^"]+)