如何修复HTTP子域中的错误“太多重定向”错误

时间:2019-10-17 13:46:57

标签: .htaccess

我将网站从主域转移到了子域。但是我得到了错误ERR_TOO_MANY_REDIRECTS

我试图清除.htaccess却没有结果

DirectoryIndex index.html index.php

AddType text/x-component .htc

RewriteEngine on

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ http://kosmimashop.digital-media.gr/$1 [R=301,L]

RewriteRule ^home/ index.php?page=home&%{QUERY_STRING}
RewriteRule ^offers/ index.php?page=offers&%{QUERY_STRING}

RewriteRule ^cart/ index.php?page=cart&%{QUERY_STRING}
RewriteRule ^orders/ index.php?page=orders&%{QUERY_STRING}
RewriteRule ^addresses/ index.php?page=addresses&%{QUERY_STRING}

0 个答案:

没有答案