gpt4 book ai didi

php - Cpanel Htaccess 强制 URL

转载 作者:太空宇宙 更新时间:2023-11-04 05:36:11 25 4
gpt4 key购买 nike

我需要有关 .htaccess 的帮助

点击下面的 URL,您将在 URL 中看到端口和 IP

123chatgroups.info (url is with port and IP)

我只想要这个

URL without port and ip
我想要没有 IP 和端口的 url

.htaccess 中要放入什么

问候

最佳答案

我认为下面的示例可行,但如果您仍然通过嵌入代码通过 GET 字符串传递变量,它也会重定向该请求。

RewriteCond %{REQUEST_URI}  ^/client/123flashchat\.swf$
RewriteCond %{QUERY_STRING} (^|&)init_host=(.*)($|&)
RewriteCond %{QUERY_STRING} (^|&)init_port=(.*)($|&)
RewriteRule ^(.*)$ /client/ [R=302,L]

关于php - Cpanel Htaccess 强制 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17913757/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com