如果我有一个网址http://example.com/page.php的.htaccess mod_rewrite的问题
,但我想在页面显示的时候有人去http://example.com/page/
我怎么去这样做?斜线后
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
RewriteRule ^$ index.php [L,QSA]
RewriteRule ^([^/\.]+)/?$ $1.php [L,QSA]
</IfModule>
注意问号:
Duplicate:http://stackoverflow.com/questions/1609710/modrewrite-htaccess-question – Gumbo 2009-10-23 14:14:27