How to set IIS website URL path redirection

By | December 3, 2013

How to set IIS website URL path redirection

Sometimes we used to get requests for redirecting website URL; the process involves configuring the webserver to redirect the client request to another target allowing bypassing the requested URL without any manual interference and disturbance. This website redirection often required for newly purchased domains list, maintenance websites, internal websites, redirect website to another web server like JBOSS etc.

The website needs to host in IIS and DNS points to the IIS webserver. Header value should be set to recognize the hosted website. The two 2 methods that was commonly used are,

1st Method

1. Go to Windows Run, type the command “inetmgr” to open IIS manager console. Choose the website which we need to redirect.

2. Open properties and select Home Directory.

3. Change the radio mark to “A redirection to a URL” and specify the target URL. Click Apply and stop and start this particular website.

2nd Method

1. Go to Windows Run, type the command “inetmgr” to open IIS manager console. Choose the website which we need to redirect.

2. Open properties and select Home Directory and identify the HOME directory (eg: c:\inetpub\wwwroot)

3. Open the home directory and create a new index.HTML (backup if there any)

4. Add the HTML redirect code and stop/start this particular website.

<html><meta http-equiv=”refresh” content=”0;url=http://techiesweb.com/alpha” /></html>

Melbin Mathew

I am Melbin Mathew, Systems Engineer from Kerala, India. I live with my parents, daughter and my wonderful wife. I graduated in 2004 with a bachelor’s degree in Electronics and Hardware from Mahatma Gandhi University, Kottayam and completed certification in MCITP, RHCE, CCNA, VCP ...Read More
Category: Windows

About Melbin Mathew

I am Melbin Mathew, Systems Engineer from Kerala, India. I live with my parents, daughter and my wonderful wife. I graduated in 2004 with a bachelor’s degree in Electronics and Hardware from Mahatma Gandhi University, Kottayam and completed certification in MCITP, RHCE, CCNA, VCP ...Read More

  • hhuo

    impressive and really helpful blog !!

    • techiesweb

      thank you for the feedback.