How to redirect port 8080 to port 80?

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 08 Oct 2013, 02:59

How to redirect port 8080 to port 80?

08 Oct 2013, 03:05

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

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: How to redirect port 8080 to port 80?

08 Oct 2013, 09:03

Hello,

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

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 14 guests