我有这个重定向:
RewriteEngine On
RedirectMatch 301 /old_folder/ /$1
我想从
重定向https://sslconnection.de/website.de/old_folder/
到
https://sslconnection.de/website.de/
包含old_folder /中的所有网站。但我总是在Firefox中遇到这个错误:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
接受Cookie。我的错误在哪里?
编辑: 也许是由于:
造成的Server API CGI/FastCGI
我读过我需要Apache?
答案 0 :(得分:0)
尝试:
RedirectMatch 301 ^/website.de/old_folder/ /website.de/
在文档根目录中的htaccess文件中。