2012-09-13 33 views

回答

1

試試這個

<IfModule mod_rewrite.c> 
    RewriteEngine on 

    RewriteCond %{REQUEST_URI} !.*\. 
    RewriteRule ^(.*) /$1.htm [L,QSA] 
</IfModule> 
+0

我收到內部服務器錯誤 – mohanraj

+0

對不起,拼寫錯誤,代碼已修復 – mabarroso

+0

謝謝 但圖像未加載。它顯示「在此服務器上未找到請求的URL /images/ess.jpg.htm」。 – mohanraj

0

試試這個:

RewriteEngine on 

RewriteBase/

RewriteRule (.*)/$ $1 [L,QSA] 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !\.htm$ 
RewriteRule ^(.*)$ $1.html [L,QSA] 
+0

我得到我的網站工作在此鏈接acfnfranchised.com/testimonials但不工作在acfnfranchised.com/testimonials請幫忙 – mohanraj

+0

我編輯我的代碼,嘗試它 – Oussama

+0

不工作顯示內部錯誤 – mohanraj