map $request_uri $index {
default "0";
"~/bitrix/admin/" "0";
"~/auth/" "0";
"~^(.*)index\.(?:php|html)(\?.+)?" "$1$2";
"~^/\?old=\d+&(.+)" "/?$1";
"~^/\?old=\d+" "/";
}
if ($index != 0) {
return 301 $index;
}
RewriteCond %{QUERY_STRING} (?:^|&)(id=\d+)
RewriteRule ^catalog\.php$ http://site.ru/%1? [L,R=301]
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]
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 %{QUERY_STRING} ^(page=\d+)/
RewriteRule ^razdel($|/).* /$0?%1 [R=301,L]
RewriteCond %{QUERY_STRING} (^|&)page=18($|&)
RewriteCond %{REQUEST_URI} ^/mebel/komod-arlen-8$
RewriteRule ^(.*)$ https://site.ru/rossiya/komod-arlen-8?page=2 [R=301,L]
RewriteCond %{QUERY_STRING} (^|&)page=18($|&)
RewriteRule ^mebel/komod-arlen-8$ https://site.ru/rossiya/komod-arlen-8?page=2 [R=301,L]
RedirectMatch 301 ^/content/(.+)\.html$ /content.php?r=$1
RewriteEngine On
RewriteRule ^content/(.+)\.html$ /content.php?r=$1 [R=301,L]
RewriteEngine on
RewriteCond $1 !^ua$
RewriteRule ^([^.]+?)/?$ /$1.html [R=301,L]
RewriteEngine on RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP RewriteRule ^([^.]+)\.html$ site.ru/$1 [R=301,L] RewriteCond %{REQUEST_URI} !(\.[^./]+)$ RewriteCond %{REQUEST_fileNAME} !-d RewriteCond %{REQUEST_fileNAME} !-f RewriteRule (.*) /$1.html <IfModule mod_rewrite.c> RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/ RewriteRule ^index\.html$ http://%{HTTP_HOST}/ [R=301,L] </IfModule>
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} "^GET ([^?]*?)(/index)?\.html"
RewriteRule ^ %1 [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule ^([^.]+)$ /$1.html [L]