2015-04-06 48 views
0

我有這樣的重定向:。訪問RedirectMatch不起作用

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

嘗試:

RedirectMatch 301 ^/website.de/old_folder/ /website.de/ 
在你的文檔根htaccess文件

+0

我試過這個。現在我沒有遇到任何錯誤,但它也沒有做任何事情:/ – GURKE