.htaccess,友好的url参数
我正在尝试解决这个问题:
control.mysite.com/?v=customers
control.mysite.com/?v=providers
control.mysite.com/?v=customers&id=1234
control.mysite.com/?v=providers&id=5678
为此:
control.mysite.com/customers
control.mysite.com/providers
control.mysite.com/customers/1234
control.mysite.com/providers/5678
我已经检查了kristen问的问题这里但还没有答案。我还发现了很多相关的问题,但它们没有我正在寻找的东西或者很难适应/实施。
编辑:我忘记提及我正在子域中运行此网站。不知道会不会有影响。
I'm trying to solve this:
control.mysite.com/?v=customers
control.mysite.com/?v=providers
control.mysite.com/?v=customers&id=1234
control.mysite.com/?v=providers&id=5678
for this:
control.mysite.com/customers
control.mysite.com/providers
control.mysite.com/customers/1234
control.mysite.com/providers/5678
I've checked what kristen asked here but no answer yet. Also I found a lot of related questions but they have not what I'm looking for or are hard to adapt/implement.
Edit: I forgot to mention that I'm running this site in a subdomain. I don't know if could affect.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你能试试这个吗?
或者参考下面的网站...
http://www.generateit.net/mod-rewrite/< /a>
Can you please try this?
Or just refer the site below...
http://www.generateit.net/mod-rewrite/