0
我的網站有3條規則,除了索引外,我的網站上的頁面沒有任何問題。我的索引頁面被稱爲ecorustic.php,但我希望它顯示簡單ecorustic沒有extention.Now如果我通過頁面瀏覽我ecorustic /山/喜馬拉雅山(它失去了擴展名),但當我回到主頁時,它顯示ecorustic.php。 PLS幫助Apache服務器重寫規則
# my .htacces file
RewriteEngine on
RewriteRule ^ecorustic/.php$ index.php #i made it so the server views it as index
RewriteRule ^ecorustic/(.*)/(.*)$ ecorustic.php?categorie=$1&nume=$2
RewriteRule ^ecorustic/(.*)$ ecorustic.php?categorie=$1 [L]
沒有變化,擴展名仍然存在 – Johny 2013-02-15 13:15:07