我想哟从URL中移除的踪迹斜线这种模式删除尾随斜线与的.htaccess
http://localhost/~francesco/mycms/about/
,使其
http://localhost/~francesco/mycms/about
我已经试过很多规则但没有人为我工作。
我重写规则是这样的现在
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~francesco/mycms/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)$ index.php?page=$1 [L]
</IfModule>
希望有人能帮帮我!
退房:http://stackoverflow.com/questions/1368276/removing-trailing-slashes-with-mod-rewrite – 2012-01-30 18:20:27
我”不工作,我很抱歉。 http://pastebin.com/847u3vac – 2012-01-30 18:32:26