Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

Recently i migrated a site from http to https(i taken port number as 4431.I knew the default port no:443 for hhtps.But my client want https for 4431 port).Now my site URL is
https://moss:4431/law/uca/ .Here moss is the server name.

Now my question is i want my site to be accessed even client Request from http://moss:4431/law/uca/ .Please help how to do it using URL Rewrite in IIS7.
Posted
Comments
Ankur\m/ 21-Apr-11 5:52am    
Have you tried searching "url rewriting 'technology name'" in Google?

U can define in ur web.config

XML
<rewriter>
    <rewrite url="http://moss:4431/law/uca/(.+)" to="https://moss:4431/law/uca/$1 " />
  </rewriter>
 
Share this answer
 
Comments
#realJSOP 21-Apr-11 6:16am    
When you post messages on this site, do NOT use text speak.
Scott Gu has something in his blog, and google shows OVER 1.5 MILLION results when you google "asp.net url rewriting":

Scott Gu's Blog Entry[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900