【发布时间】:2013-09-03 18:58:17
【问题描述】:
我的目标是这个网址:
component/users/?view=registration
收件人:
registration.html
.htaccess 位于网站的 mysite 文件夹中。
我试过这个:
RewriteBase /mysite
RewriteRule ^component/users/?view=registration$ registration.html$ [R=301,L]
但我不工作......
当我尝试这个时:
RewriteRule ^component/users/_view=registration$ registration.html$ [R=301,L]
效果很好。
那么我怎样才能用问号解决这个问题。我已经读过it is not a part of the URL(附加)。我读过我必须使用类似查询字符串的东西,但我并没有真正理解语法。
也许有人可以写出这个问题的解决方案?会很棒=)
【问题讨论】:
标签: .htaccess url mod-rewrite