如何使用 mod_rewrite 提供 RESTful URL,隐藏我的脚本名称?
我刚开始使用 mod_rewrite
。有人可以告诉我如何将此网址更改
http://example.com/blog/index.html?page=1
为
http://example.com/blog/page/1
非常感谢!
耕平
I'm new to using mod_rewrite
. Could some one tell me how to change this url
http://example.com/blog/index.html?page=1
to
http://example.com/blog/page/1
Thanks a bunch!
Kohei
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 .htaccess 中尝试上面的行
try the above lines in your .htaccess