URL Rewrite

We are using a product from Helicon called,  ISAPI_Rewrite 3

we have two websites on the same domain.  One HTTP port 80 and one HTTPS port 443.  When an internet requests comes in to our server, this ISAPI rewrite, evaluated the request to see if it is a port 80 request or a port 443 and then redirects the request to the appropriate website.

However this product doesn't work on our Windows Server 2012 R2 servers.  Microsoft has a tool called URL Rewrite that appears to do the same thing using IIS8.

I am not sure how to develop the rules scripts to make this work.  Examples that I have seen, seem to look very close to the Helicon rules.

What is the scripting language used in URL Rewrite in IIS 8 and are there any resources that would describe what these scripts are doing.

Here is an example of our Helicon Script:
RewriteCond %{HTTPS} ^.*on.*$ [NC]
RewriteRule ^auth/login(.*)$ http\://www.ourDomain.com/auth/login$1 [NC,R=301,L]


RewriteCond %{REQUEST_URI} !^/(?:Magic94Cache|Magic94Scripts|pl|ProPartnerProgram|samples|reports|reportsmgm|uniBCCache|uniRIAApplications|uniScripts/|web_pro/|web_mgm_pro/|wsScripts|aspnet_client|charts_cache|control|images/|js|Marketing|New_Site|ProPartner|Scripts|video|web_test_pro|web_trng_pro|web_training_pro|auth/login|ga-isapi/) [NC]
RewriteProxy (.*) http\://192.168.200.10/$1 [H,L]
sfletcher1959VPAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Khushal Singh NarookaCommented:
IIS 8.0 does support URL rewriting. Refer to the given URL to make one for you....

http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

Thanks.
0
David Johnson, CD, MVPOwnerCommented:
if you want port 80 to go to one site and port 443 to go to another site then change the bindings for each site  one with port 80 enabled and the other with port 443 enabled.binding
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.