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