【发布时间】:2018-02-12 21:59:18
【问题描述】:
以下规则适用于 http,但不适用于 https。
RewriteCond %{QUERY_STRING} "page=" [NC]
RewriteRule (.*) /$1? [L]
RewriteRule ^/path/file.html$ https://www.domain.tld/path/file/ [R=301,L]
为什么 query_string 部分在 https 中不起作用?
【问题讨论】:
-
只有这些规则吗?
-
不,在我以这种方式进行了一些 301 重定向之后:RewriteRule ^/path/file.html$ domain.tld/path/file [R=301,L]
-
RewriteRule (.*) /$1? [L]的意义何在? -
删除所有get参数
-
不工作是什么意思,它会将网址重定向到意外位置吗?
标签: apache mod-rewrite