长.htaccess RewriteRules

时间:2013-02-11 18:44:37

标签: .htaccess

我如何获得

  

http://nebulaproject.net/forum/topic/1

变成

  

http://nebulaproject.net/forum/topic.php?id=1

我想,

RewriteRule ^/forum/topic/(.*) /forum/topic.php?id=$1 [L]

RewriteRule ^/forum/(.*)/(.*) /forum/$1.php?id=$2 [L]

可能有用,但......没有运气。我还有其他RewriteRules设置,例如/players/Haribo98/player/index.php?username=Haribo98

0 个答案:

没有答案