.htaccess - 删除查询字符串和参数异常
问题描述
这个例子对我有用,但是...... 删除查询字符串和参数
对于某些 URL,我需要其中一个参数。我用这个:
# Remove the entire query string if any one
# of the URL params are present
RewriteCond %{QUERY_STRING} (&|^)(L|cHash)=
RewriteRule ^ %{REQUEST_URI} [QSD,R=301,L]
但需要 cHash-Parameter 用于表单 URL,例如:
https://www.example.ch/kontakt/kontaktformular?cHash=40be5c21cb78c4b9194d39a94d4a5246
或者
https://www.example.ch/example2/kontaktformular?cHash=a3fe72226dffe6e1ac8c84e3af0887ae
如何解决这个问题?
解决方案
推荐阅读
- html - 在无头打印到 PDF 中禁用 Chrome 的默认页眉和页脚
- reactjs - 如何将 hooks(useEffect) 与 axios 结合使用
- ios - 翻转过渡动画后 IBOutlet 为零
- jquery - 返回具有通过 jQuery AJAX 指定的路径的 MVC 5 视图不起作用
- python - 无法分配:必须是实例 Django 外键错误
- ios - iOS 中 Facebook 帐户工具包的自动填充密码
- mongodb - Mongodb scala驱动程序解码案例类具有默认值
- c# - 在 .net 核心视图自定义访问被拒绝视图中实施策略
- list - Flutter 上传列表到 Google Firestore
- spring - 为什么 JPA @PreUpdate 不在同一事务中的 @PostLoad 之后调用?