2011-12-20 212 views
0

在我.htaccess文件我有:的.htaccess被忽略

ErrorDocument 404 http://localhost/example/public_html/error/404 

但是,當出現404錯誤,默認的頁面,而不是http://localhost/example/public_html/error/404顯示出來。

回答

1

嘗試修改您的主機配置,並設置

<Directory /path/to/your/directory> 
    AllowOverride All 
</Directory> 
+0

'的AllowOverride All' – garg 2013-05-06 17:02:10