【问题标题】:Append Query String to main domain将查询字符串附加到主域
【发布时间】:2019-02-10 06:55:40
【问题描述】:

我需要重定向/附加(从 .htaccess)查询字符串到主域 (例如)

RewriteCond %{HTTP_HOST} ^www.domain.com$
.....
RewriteRule www.domain.com/?query=string [L,R=301]

任何帮助将不胜感激。 谢谢

【问题讨论】:

    标签: .htaccess redirect mod-rewrite query-string


    【解决方案1】:

    下面应该可以工作,

    RewriteCond %{HTTP_HOST} ^www.example.com$
    RewriteRule ^ http://www.example.com/?query=string [L,R=301]
    

    【讨论】:

      猜你喜欢
      • 2013-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多