Thanks to assistance from the board here, I got the private page figured out. But my client sends the directory without the trailing slash "http://domainname.com/intranet" as the link in his printed copy. Now he wants that to redirect to the actual staff page which is "http://domainname.com/intranet/staff.html" I used .htaccess but found out that I need to use web.config instead because it's IIS and not Unix. So is it possible to redirect a request to a directory to a file inside that directory? I tried the following code but I think I created an infinite loop. This web.config is in the root, http://domainname.com/ <configuration> <location path="intranet"> <system.webServer> <httpRedirect enabled="true" destination="http://domainname.com/intranet/staff.html" httpResponseStatus="Permanent" /> </system.webServer> </location> </configuration>
You probably need to use URL Rewrite. Here are few links to examples: http://blog.discountasp.net/url-rewrite-2-0-for-iis-7-is-here/ http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx You might want to take a look a Rewrite Maps.
Well, that was overkill. Didn't need to redirect it all. Just rename the target html file to index.html and that part is sorted. Unfortunately, now the page renders while the User and Password dialog pops up.