user2698332
user2698332

Reputation: 21

redirect default website - iis 7, MVC

I am trying to redirect default website(iis) https://www.domain.com to https://www.domain.com/xyz using URL rewrite module and HTTP redirect, but it's not working.

My application is deployed at https://www.domain.com/xyz.

Application Type: ASP.NET MVC 5

Authentication: Windows

IIS Version: 7.5

Windows Server 2008 R2

Upvotes: 0

Views: 2018

Answers (1)

Shoeb Siddique
Shoeb Siddique

Reputation: 155

If you want to redirect all the calls coming to default website on your web site you can use HTTP Redirect option .

Steps 1

Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI based on your IIS administrative role, see Navigation in IIS Manager (IIS 7).

Step 2

In Features View, double-click HTTP Redirect. enter image description here

step 3 On the HTTP Redirect page, select Redirect requests to this destination. In the corresponding box, type the file name, directory path, or URL to which you want to redirect the user.

enter image description here

Step 4

In the Actions pane, click Apply.

Ref :- https://technet.microsoft.com/en-us/library/cc732969(v=ws.10).aspx

https://technet.microsoft.com/en-us/library/cc732930(v=ws.10).aspx

let me know how it worked for you.

Upvotes: 1

Related Questions