Redirect 301 /kollekciya-proektov/ https://---.ru/index.html
Redirect 301 /kollekciya-proektov/t-100/ https://---.ru/projects.htmlRedirect 301 /kollekciya-proektov/t-100/ https://---.ru/projects.html
Redirect 301 /kollekciya-proektov/ https://---.ru/index.htmlRedirectMatch 301 ^/kollekciya-proektov/$ https://---.ru/index.html
RedirectMatch 301 ^/kollekciya-proektov/t-100/$ https://---.ru/projects.html (?=;).*?; использовать [^;]*(.*?);Откуда то берется 302 редирект.
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]Или совсем убрать и настраивать редирект только через .htaccess server {
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*) /index.php?altum=$1;
}
location ~ \.php$ {
...
}server {
location ~ \.php$ {
...
}
location ~ ^/(.*) {
try_files $uri $uri/ /index.php?altum=$1&$args;
}map $uri $_uri {
~^/(.*) $1;
}
server {
location / {
try_files $uri $uri/ /index.php?altum=$_uri&$args;
}
location ~ \.php$ {
...
} map "$remote_addr;$args" $var {
default 0;
"~^94\.143\.197\.26;full_slug=[^&]*&cat=-1&page=\d*$" 1;
}
server {
location = /seek {
if ($var) {
return 403;
}
rewrite ^ /index.php;
}
location / {
try_files $uri $uri/ /index.php?$args;
} <zpb-phone number="+7 (999) 999-99-99" module="Contacts"
(?s).*?(?:\z|<zpb-phone number="([^"]+))$1\n /.htaccess# если /lk/
RewriteRule ^lk/(.*)$ lk/dist/client/$1 [L]/lk/dist/client/.htaccessRewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [L] location /client/dev {
alias /var/www/site.ru/build;
try_files $uri /index.html =404;
}location /client/dev {
alias /var/www/site.ru/build;
try_files $uri /client/dev/index.html;
}