如果我有一個網址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