.access RedirectMatch不起作用

时间:2015-04-06 18:07:35

标签: .htaccess redirect

我有这个重定向:

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?

1 个答案:

答案 0 :(得分:0)

尝试:

RedirectMatch 301 ^/website.de/old_folder/ /website.de/

在文档根目录中的htaccess文件中。