.htaccess 查询字符串到文件夹格式
我有一个带有查询字符串的查询 URL,我想将其转换为文件夹结构化 URL。
例如:
http://localhost/index.php?page=about-us
http://localhost/index.php?page=contact-us
我如何将其隐藏为
http://localhost/index/page/about-us
http://localhost/page/about-us
我知道这可以通过 .htaccess 来完成。我只是不知道从哪里开始
I have a query URL with query string and I want to convert it to folder structured URL.
For example:
http://localhost/index.php?page=about-us
http://localhost/index.php?page=contact-us
how would I covert it to
http://localhost/index/page/about-us
http://localhost/page/about-us
I know this can be done with .htaccess. I just don't know where to start
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你需要一些类似的东西......
You would need something along the lines of...