2013-04-29 93 views
1

我遇到了问题ErrorDocumentRewriteRule。简而言之,这里是我的:HTACCESS - ErrorDocument + RewriteRule = Infinte Loop

1. ErrorDocument 404 http://www.MYSITE.com/Cust404.html 

2. RewriteEngine On 
    #/Some very needed custom rewrite conditions 
    . 
    . 
    . 
    RewriteRule ^.* - [R=404,L] 

这是无限循环的结果(很明显)。但是,我不知道如何解决这个问题。任何人有任何想法?谢谢。

+0

你可以尝试'ErrorDocument的404 HTTP:// www.MYSITE.com/Cust404.html'低于'重写规则^ * - [R = 404,L]' – 2013-04-29 10:43:42

+0

不,没有帮助 – 2013-04-29 10:57:15

回答

0

试试这个:

RewriteRule ^(.*)$ [R=404,L] 
+0

不,它没有工作 – 2013-04-29 11:27:06