2013-07-24 42 views

回答

1

HTTP狀態410表示「Gone」,可以通過mod_rewrite中的[G]標誌完成。

RewriteRule \.html$ - [G] 

documentation for the G flagdocumentation for mod_rewrite

+0

不確定。獲得500錯誤。我正在使用 你能給我完整的代碼嗎? –

+0

@HelenM自從你提到.htaccess我假設某種Apache服務器。在這種情況下,您應該在嘗試解決此問題時檢查_error_日誌。 – jdv

0

在.htaccess文件中使用它。

RewriteEngine On 
RewriteRule \.html$ - [G] 
相關問題