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