How do I redirect in IIS
David Edwards
Updated on May 18, 2026
In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties. Click the Home Directory, Virtual Directory, or Directory tab. Under The content for this source should come from, click A redirection to a URL.
How do I redirect a website in IIS?
In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties. Click the Home Directory, Virtual Directory, or Directory tab. Under The content for this source should come from, click A redirection to a URL.
Where is HTTP redirect in IIS?
- Launch “Server Manager”
- Click “Roles”
- Click “Web Server (IIS)”
- Click “Add Role Services”
- Underneath “Common HTTP Features” tick the box “HTTP Redirection”:
How do I enable redirect in IIS?
- Click Start >> Administrative Tools >> Internet Information Services (IIS).
- Select the server under Connections tab in IIS.
- Now select HTTP Redirect option from the center menu.
- Specify the redirect URL in the format format.
How do I redirect in IIS 10?
- Download and install the IIS URL Rewrite module, then launch IIS Manager.
- Select the website you want to apply redirection to, then double-click URL Rewrite.
- Click Add Rule(s)…
- Select Blank rule in the Inbound rules section, then click the OK button.
- Give your redirect an easy-to-remember name.
How do I redirect www to non www IIS?
- Add your website to IIS. Add your website to IIS. With no www before the domain.
- Add a Site bindings. Add one more domain with www. Add a Site bindings to you website.
- Use URL Rewrite extention. Use URL Rewrite extention. In URL Rewite. Click Add rule(s)… Choose Canonical domain name.
How do I redirect in IIS 8?
- Make sure you’ve got the URL rewrite module installed in IIS. …
- Select your website in IIS and then click on the “URL Rewrite” option in the features pane.
- Once URL Rewrite screen is open, click the “Add Rules…” link in the right hand pane and enter the details as shown below.
How do I know if IIS is redirecting?
Open Internet Information Services (IIS) Manager. Highlight your server name from Connections tree view and open Configuration Editor from the main panel’s features view. Within Configuration Editor, select Search Configuration from the Actions pane. In the search dialog box type in “redirect“.How do I enable redirect?
On the taskbar, click Start, and then click Control Panel. In Control Panel, click Programs and Features, and then click Turn Windows Features on or off. Expand Internet Information Services, then World Wide Web Services, then Common Http Features. Select HTTP Redirection, and then click OK.
How do I redirect a URL in HTML?The simplest way to redirect to another URL is to use an HTML <meta> tag with the http-equiv parameter set to “refresh”. The content attribute sets the delay before the browser redirects the user to the new web page. To redirect immediately, set this parameter to “0” seconds for the content attribute.
Article first time published onHow do I redirect HTTP?
Principle. In HTTP, redirection is triggered by a server sending a special redirect response to a request. Redirect responses have status codes that start with 3 , and a Location header holding the URL to redirect to. When browsers receive a redirect, they immediately load the new URL provided in the Location header.
How do I redirect http to HTTP in IIS?
- Download and install the IIS URL Rewrite Module.
- Open IIS Manager and, in the console, select the website you want to redirect.
- Select URL Rewrite.
- Click Add Rules.
- Select Blank Rule, click OK.
- Enter the Name of rule.
- In the Match URL section, choose “Matches the Pattern” in the Requested URL drop-down.
How do I redirect a domain to another domain in IIS?
- In internet services manager, right click on the file or folder you wish to redirect then select “Properties”
- Select the radio titled “a redirection to a URL”.
- Enter the redirection page.
- Check “The exact url entered above” and the “A permanent redirection for this resource”
- Click on ‘Apply’
How do I redirect a domain?
- Navigate to the Manage Domains page. The Manage Domains page opens.
- Click the Add Hosting to a Domain / Sub-Domain button.
- Scroll down to the Redirect section.
- Enter the information in the following fields: …
- Click the Redirect this domain button to complete the set up.
How do I redirect www to non www?
- Find your . htaccess file. Find the . htaccess file of your website and download it to your computer. …
- Add the following code into . htaccess file. To make the 301 redirect from www to non-www you have to add the following code into your .htaccess file: RewriteEngine On.
How do I redirect a website with www?
- Go to the hPanel. Under the Domain category, choose the Redirects menu.
- You’ll see the Create a Redirect section. …
- Click Create once you’re done. …
- Once redirected, you’ll see the target URL () when accessing the original URL (www.
What is the difference between URL rewrite and redirect?
Simply put, a redirect is a client-side request to have the web browser go to another URL. This means that the URL that you see in the browser will update to the new URL. A rewrite is a server-side rewrite of the URL before it’s fully processed by IIS.
How do I redirect a link to another link?
Click the URL Redirects tab. In the upper right, click Add URL redirect. In the right panel, select the Standard or Flexible redirect type. A standard redirect is used to redirect one URL to another.
How do I redirect a button to another page?
To make button type submit redirect to another page, You can use HTML Anchor tags <a>. Where you need to write your HTML Button [button type submit] between these HTML Anchor Tag’s starting <a> and Closing </a> Tags. or you can use HTML Form Tags to do the Same thing.
How do I redirect a request to another URL?
- Use the LOCATION attribute of the URIMAP resource to specify a URL of up to 255 characters, to which matching HTTP requests are redirected. …
- Use the REDIRECTTYPE attribute of the URIMAP resource to specify temporary or permanent redirection. …
- To cancel redirection, set the REDIRECTTYPE attribute to NONE.
What method do you use to redirect a page?
- Types of redirects.
- 301 moved permanently. …
- 302 found. …
- 307 moved temporarily. …
- Meta refresh. …
- To redirect an entire domain to a new site: …
- To redirect a single page. …
- Using Apache mod_rewrite.
How does redirect work?
Redirects occur when it is encoded into a web page rather then set on a server level. The request for the site is sent, the resource begins to load, and then there are directions during loading that reroute them.
How do I force redirect to HTTP?
- Log into cPanel.
- Click the File Manager icon.
- At the top right, click the Settings button.
- Check the Show Hidden Files (dotfiles) box and click Save.
- Now you have to locate the . …
- From here, find your .htaccess file, right click it and click Edit.
How do I redirect http to https in web config?
- <system.webServer>
- <rewrite>
- <rules>
- <rule name=”Force HTTPS” enabled=”true”>
- <match url=”(.*)” ignoreCase=”false”/>
- <conditions>
- <add input=”{HTTPS}” pattern=”off”/>
- </conditions>
How do I redirect a secure website?
- Go to Page Rules.
- Click “Create Page Rule”
- Enter the URL (put the asterisk, so redirection happens for all the URI)
- Click “Add a Setting” and select “Always Use HTTPS” from the drop-down.
How do I redirect http to https in IIS 7?
- Install the Microsoft URL Rewrite Module.
- Install your SSL certificate in IIS 7 and bind it to your website.
- Make sure Require SSL is NOT checked under SSL Settings for your website (uncheck the boxes that are checked in this screenshot)
How do I create a 301 redirect in IIS?
- Open IIS Manager and locate the website.
- Right click the file you want to redirect and choose properties.
- Change the selector to “A Redirection to a URL”
- In the “Redirect To:” box type the new URL.
Do I need to redirect www?
If you have a small website, using a www domain is unnecessary. So, it is your personal choice whether you want to go for a www or a non-www domain. It would make practically no difference whatsoever, no matter which one you choose.