Popular Posts
Enable SSL connection for Jsoup import org.jsoup.Connection; import org.jsoup.Jsoup; import javax.net.ssl.*; import java.io.IOException; import java.security.KeyManagement... Change the AppDomain's Base Directory and Environment Directory // Update AppDomain's Base Directory string root_path = "c:\\temp\\"; AppDomain.CurrentDomain.SetData("APPBASE", roo... Word break tag : <wbr/> (HTML5) The  HTML  <wbr>  tag  is  used  defines  a  potential  line  break  point  if  needed.  This  stands  for  Word  BReak. This  is  u...
Stats
MEMO: Url rewrite on default site of IIS

Application Request Rounting is required. Install using web platform installer.

Enable Application Request Rounting.

Set server proxy setting.

Set Enable proxy checked and Enable disk cache unchecked.

Binding host name on default site. Using www.mvc.com as example.

Rewrite www.mvc.com to http://localhost:8080/mvc

Add rewrite rule on default site.

Add rule using blank rule template.

Set rewrite rule for www.mvc.com

The result of www.mvc.com

Add rewrite rule for other iis site on localhost. First, create a new web site, and add an host reference www.mysite.me.

Set rewrite rule for www.mysite.com

Add host binding of default site

The result of www.mysite.com