我似乎无法使用mod重写将示例1转换为示例2。有人能帮帮我吗?
示例1
http://www.example.com/info/index.php?uid=123示例2
http://www.example.com/123Mod重写代码。
Options +FollowSymLinks
Options -Indexes
RewriteEngine on
RewriteBase /info
RewriteRule ^([^/]*)$ /info/index.php?uid=$1 [L]发布于 2010-12-28 06:55:35
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]https://stackoverflow.com/questions/4542406
复制相似问题