Mod rewrite 修改问题

Mod rewrite 修改问题,mod-rewrite,Mod Rewrite,我似乎无法使用mod rewrite将示例1转换为示例2。有人能帮我吗 例1 http://www.example.com/info/index.php?uid=123 例2 http://www.example.com/123 Mod重写代码 Options +FollowSymLinks Options -Indexes RewriteEngine on RewriteBase /info RewriteRule ^([^/]*)$ /info/index.php?uid=$1 [L]

我似乎无法使用mod rewrite将示例1转换为示例2。有人能帮我吗

例1

http://www.example.com/info/index.php?uid=123
例2

http://www.example.com/123
Mod重写代码

Options +FollowSymLinks
Options -Indexes
RewriteEngine on
RewriteBase /info

RewriteRule ^([^/]*)$ /info/index.php?uid=$1 [L]

你一定是看错了我的问题,我想让最后一段代码正常工作。你如何调用url?www.example.com/info/index.php?uid=xxxx或example.com/info/index.php?uid=xxxxxxi使用
。这些规则适用于我现在拥有的一个域,因此它是正确的。唯一的区别是基本atm
RewriteCond %{HTTP_HOST} ^www.example.com(:80)?$ [NC]        
RewriteCond %{QUERY_STRING}     ^uid=(.*)$    [NC]
RewriteRule ^/info/index\.php$ http://www.example.com/%1? [NC,L,R=301]