简体   繁体   中英

Cpanel Htaccess force URL

I need help with .htaccess

click this below URL you ll see port and IP in URL

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

i want only this

URL without port and ip
i want url without IP and Port

what to put in .htaccess

regards

I think the below example will work, but if your still passing variables via a GET string though embed code It will redirect that request as well.

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

you can simply hide ports and hosts in 123flashchat.swf by open this file with

http://www.free-decompiler.com/flash/download/

i.stack.imgur.com/xkjzy.png

for example you can see my chats https://12allchat.io/chat/

http://chat.domo3warda.com/123flashchat.swf here im hiding the ports

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM