/.htaccess
# если /lk/
RewriteRule ^lk/(.*)$ lk/dist/client/$1 [L]
/lk/dist/client/.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [L]
<FilesMatch ".(zip|7z|rar|txt|sql)$(?<!^robots\.txt)">
Order Allow,Deny
Deny from all
</FilesMatch>
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
[R=301,L]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteRule ^(.*)index\.(php|html|htm)$ https://%{HTTP_HOST}%$1 [R=301,L]
%$1
/
или /$1
RewriteRule ^(.*)index\.(php|html|htm)$ https://%{HTTP_HOST}/ [R=301,L]
RewriteEngine on
RewriteRule ^tex(.*)$ /cgi-bin/mathtex.cgi?$1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/cgi-bin/mathtex\.cgi
RewriteRule ^(.*)$ public/$1 [L]
/
т.е. всегда остается просто info/.^info/?$
убрать /?
то правило будет срабатывать только для site.ru/infoRewriteCond %{THE_REQUEST} ^[^?]+//
RewriteRule .* /$0 [R=301,L]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^https?://ireenamyha\.myjino\.ru/videovier\.php
RewriteRule \.mp4$ - [F]
RewriteCond %{HTTP_HOST} ^(?:www\.)?domain\.ru$ [NC]
RewriteRule ^(spb|msk|rostov)/(.*) http://$1.domain.ru/$2 [R=301,L]
RewriteCond %{HTTP_HOST} ^(?:www\.)?domain\.ru$ [NC]
RewriteCond %{REQUEST_URI} ^/(msk)/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/(spb)/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/(rostov)/(.*)$
RewriteRule ^ http://%1.domain.ru/%2 [R=301,L]
нужно https://site/old переадресовать на https://site/new
RewriteRule ^old$ https://site/new? [R=301,L]
RedirectMatch 403 config\.
RedirectMatch 403 ^/(?!favicons/browserconfig\.xml).*config\.
Order Deny, Allow
Order Deny,Allow
RewriteCond %{REQUEST_URI} ^(.*?)\/{2,}(.*?)$ RewriteRule . %1/%2 [L,R=301] RewriteCond %{THE_REQUEST} // RewriteRule .* /$0 [R=301,L]
RewriteCond %{THE_REQUEST} //
RewriteRule .* /$0 [R=301,L]
//
нужно ограничить поиск чтобы не зациклило редирект.RewriteCond %{THE_REQUEST} ^[^?]+//
RewriteRule .* /$0 [R=301,L]
./feed/$
RewriteCond %{REQUEST_URI} ./feed/$
RewriteRule ^.*$ https://example.com/v5dl/? [R=301,L]
RewriteRule /feed/$ https://example.com/v5dl/? [R=301,L]