• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 758
  • Last Modified:

Change default to a website subfolder in iis7

We are looking to host a wordpress intranet site on our windows 2008r2 server with iis7. I have wordpress installed and working in the following path: C:\inetpub\wwwroot\bconnect. When the user types in the full url (http:\\servername\bconnect) the site works fine. However, if the user types (http:\\servername) it goes to the default IIS splash page. What is the best way to have it redirect to the C:\inetpub\wwwroot\bconnect subdirectory. See the picture below.
screenshot of iis
1 Solution
Patrick BogersDatacenter platform engineer LindowsCommented:

Easiest way is editing the index.html in wwwroot replacing content with this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="refresh" content="0;URL=http:\\servername\bconnect" />


blkstrimAuthor Commented:
thanks so much. This is exactly what I needed.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now