RewriteCond %{REQUEST_URI} ^/catalog/perchatki/$1 RewriteRule ^(.*)$ /catalog/ekipirovka/perchatki/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/catalog/perchatki/(.*)
RewriteRule ^(.*)$ /catalog/ekipirovka/perchatki/%1 [R=301,L]
RewriteRule ^(catalog)/(perchatki/.*)$ /$1/ekipirovka/$2 [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} "^GET /CMS/ "
RewriteRule ^ / [R=301,L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /CMS/index.php [L]
</IfModule>
# Переезд на https
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# Убираем www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://site.ru/$1 [R=301,L]
RewriteCond %{QUERY_STRING} (?:^|&)(id=\d+)
RewriteRule ^catalog\.php$ http://site.ru/%1? [L,R=301]
RewriteRule ^uploads/(.+)$ https://site.ru/uploads/$1 [QSA]
RewriteRule ^(uploads/.+)$ https://site.ru/$1 [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^page-cache/(.*?)(\.html|$) http://site.com/$1 [R=301,L]
RewriteRule ^$ page-cache/pc__index__pc.html [L]
RewriteCond %{DOCUMENT_ROOT}/page-cache/$1.html -f
RewriteRule (.+) page-cache/$1.html [L]
DirectorySlash Off
ErrorDocument 404 /404.html
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} "^\S+ /([^?.]+)\.html"
RewriteRule ^(?:index|([^.]+))\.html$ https://zaoks.ru/$1 [R=301,L]
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://zaoks.ru/$1 [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule ^([^.]+)$ /$1.html [L]
<Files ~ "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</Files>
RedirectMatch 301 ^/(.*?)/remont/remont(/.*) http://site.ru/$1$2
RewriteRule ^(.*?)/remont/remont(/.*) http://site.ru/$1$2 [R=301,L]
RewriteCond %{QUERY_STRING} &product_id=514(&|$)
RewriteRule ^(.*)$ https://site/portfeli/portfel-transformer-numanni-pw357-2371? [L,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^$ https://example.com/page/ [R=301,L]
RewriteCond %{THE_REQUEST} " /wp/ "
RewriteRule ^ https://example.com/page/ [R=301,L]
RewriteCond %{THE_REQUEST} " /portfolio\.php\?id=(\d+)"
RewriteRule ^ /%1? [R=301,L]
RewriteRule ^([0-9]+)$ /portfolio.php?id=$1 [L,QSA]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond &%{QUERY_STRING} &id=(\d+)
RewriteRule ^portfolio\.php$ /%1? [R=301,L]
RewriteRule ^([0-9]+)$ /portfolio.php?id=$1 [L,QSA]
$.ajax({ url: "reg_server.php",
"reg_server.php"
на "reg_server"
RewriteCond %{THE_REQUEST} " (/[^?/]+)\.php"
RewriteCond %{THE_REQUEST} "^GET (/[^?/]+)\.php"
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://site.ru/$1 [R=301,L]
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?>www\.|)(.+) [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{SERVER_PORT}%{HTTP_HOST} !^443(?!www\.) [NC]
RewriteCond %{HTTP_HOST} ^(?>www\.|)(.+) [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{SERVER_PORT}%{HTTP_HOST} ^(?|443www\.(.+)|80(?>www\.|)(.+)) [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(?>www\.|).+\.site\.ru$ [NC]
RewriteRule ^robots\.txt$ /robots_1.txt [L]
RewriteBase /
...
RewriteBase /dash-dev/dist
...
RewriteRule ^(.*)$ $1.php [L]
и перенаправляет на ajax/signup.php, а после добавления RewriteBase получается /dash-dev/dist/ajax/signup.php и обработка начинается заново с начала .htaccessRewriteRule . /dash-dev/dist [L]
RewriteBase /dash-dev/dist
RewriteCond %{REQUEST_URI} /[^/.]+$
RewriteRule ^(.*)$ https://localhost/$1/ [R=301,L]
RewriteCond %{THE_REQUEST} /index\.php [OR]
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*?)(index\.php|$) https://localhost/$1 [R=301,L]