使用 mod_rewrite 删除 PHP 路径详细信息
我似乎无法使用 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]
接下来我可以尝试什么?
I can't seem to get Example 1 to turn into Example 2 using mod_rewrite.
Example 1
http://www.example.com/info/index.php?uid=123
Example 2
http://www.example.com/123
Mod rewrite code.
Options +FollowSymLinks
Options -Indexes
RewriteEngine on
RewriteBase /info
RewriteRule ^([^/]*)$ /info/index.php?uid=$1 [L]
What can I try next?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)