How to redirect port 8080 to port 80?
2 posts
• Page 1 of 1
- hankycheng
-
- Posts: 1
- Joined: 08 Oct 2013, 02:59
How to redirect port 8080 to port 80?
Hi All
I want to use ISAPI_rewrite redirect as below case:
www.test.com redirect to hd.def.com
www.test.com:8080 redirect to hd.def.com:8080
Tks all guy to give me some idea
I want to use ISAPI_rewrite redirect as below case:
www.test.com redirect to hd.def.com
www.test.com:8080 redirect to hd.def.com:8080
Tks all guy to give me some idea
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: How to redirect port 8080 to port 80?
Hello,
Try using the following:
Regards
Andrew
Try using the following:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:Host} ^www\.test\.com$ [NC]
RewriteRule (.*) http://hd.def.com/$1 [NC,R=301,L]
RewriteCond %{HTTP:Host} ^www\.test\.com\:8080$ [NC]
RewriteRule (.*) http://hd.def.com:8080/$1 [NC,R=301,L]
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 14 guests