26
2025
04
02:48:38

用.htaccess去?i=1 ?i=2尾巴的代码

RewriteEngine On
RewriteCond %{QUERY STRING}.
RewriteRule [^.]*$ /$1? [L,NE,R=301]




If incoming requests match…

Wildcard pattern

Only apply the rule to requests matching the wildcard pattern

Custom filter expression

Only apply the rule to requests matching the custom filter expression

All incoming requests

Apply the rule to all requests

Request URL
https://*.kqqq.eu.org/*?i=*
By using the asterisk () character to create a pattern that can match many requests e.g. https://.example.com/files/*
Then…
Redirect to target URL. This can be static or dynamic using a wildcard replacement ${1}, ${2}, etc.
Target URL
https://${1}.kqqq.eu.org/${2}
e.g. https://example.com/${1}/${2}
Status code
301




推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

本文链接:https://zblog.hqyman.cn/post/10927.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

请先 登录 再评论,若不是会员请先 注册

您的IP地址是: