<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - General</title><link>http://forums.iis.net/1041.aspx</link><description>For any general questions relating to IIS 7</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: IIS7 Virtual Directory / Application for Single File</title><link>http://forums.iis.net/thread/1909974.aspx</link><pubDate>Fri, 10 Jul 2009 23:04:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909974</guid><dc:creator>bberardinis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909974.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1909974</wfw:commentRss><description>&lt;p&gt;Anil, &lt;/p&gt;
&lt;p&gt;Thanks for the response and yes I have noticed what you described with the web.config file. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I may try option B.&amp;nbsp; Its too bad this changed in IIS7 because it was a nice feature to alias web pages.&amp;nbsp; With IIS6 I was able to create a virtual directory for any file in the&amp;nbsp;root folder but with&amp;nbsp;your recommended &amp;quot;Option C&amp;quot; I really think I will&amp;nbsp;loose all the relative paths of the content in my page.&amp;nbsp; Anyway, thanks again.&amp;nbsp; Any other suggestions would be appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- Brett&lt;/p&gt;</description></item><item><title>Re: IIS7 Virtual Directory / Application for Single File</title><link>http://forums.iis.net/thread/1909967.aspx</link><pubDate>Fri, 10 Jul 2009 21:54:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909967</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909967.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1909967</wfw:commentRss><description>&lt;p&gt;What you are seeing is because IIS uses distributed config files (web.config) for its configuration same as how asp.net used to - now when you change the default document for the /forums app, the change is written to the web.config file where the / app is also pointing and so ends up applying to both - you would be hitting similar issues with asp.net settings in IIS6.&amp;nbsp; I can think of at least 3 ways to overcome this&lt;/p&gt;
&lt;p&gt;a) use centralized config file for this setting (similar to IIS6) - from an elevated command run - %windir%\system32\inetsrv\appcmd.exe set config &amp;quot;default web site/forums&amp;quot; -section:system.webServer/defaultDocument -+files.[name=&amp;#39;forums.aspx&amp;#39;] -commit:apphost&lt;br /&gt;b) use url-rewrite rules to rewrite the incoming url from /forums to /forums.aspx - note that you may have to take care of relative links in the response since the url at the server is now /forums.aspx rather than /forums/forums.aspx&lt;br /&gt;c) Copy forums.aspx to another directory and point /forums to it (you were anyway not getting any benefit from forums.aspx being in the same directory since you were executing /forums/forums.aspx)&lt;br /&gt;&lt;/p&gt;</description></item><item><title>IIS7 Virtual Directory / Application for Single File</title><link>http://forums.iis.net/thread/1909961.aspx</link><pubDate>Fri, 10 Jul 2009 21:18:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909961</guid><dc:creator>bberardinis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909961.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1909961</wfw:commentRss><description>&lt;p&gt;Honestly this should be simple but it has not been.&amp;nbsp; I had IIS6 and was able to do it just fine.&amp;nbsp; What I want is a Forward slash page that points to a single file&lt;/p&gt;
&lt;p&gt;ie:&amp;nbsp; &lt;a href="http://www.website.com/Forum"&gt;www.website.com/Forum&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The reason for this is that it is more convienent than having people type: &lt;a href="http://www.website.com/Forum.aspx"&gt;www.website.com/Forum.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This file resides in the same directory as the parent Default.aspx webpage.&lt;/p&gt;
&lt;p&gt;This was entirely possible in IIS6 to create Virtual Directories that linked to specific files.&amp;nbsp; It DOES NOT seem to be possible in IIS7.&amp;nbsp; When I create an Application or Virtual Directory with the same path as the website and change the Default Document to point to a specific file.&amp;nbsp; THIS CHANGES THE DEFAULT DOCUMENT GLOBALLY FOR THE ENTIRE WEBSITE.&lt;/p&gt;
&lt;p&gt;ie if I created an application and pointed it to Forum.aspx, the homepage of my website would now be pointing to Forum.aspx.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I hope this is clear because it is very frustrating.&amp;nbsp; Is there a way to create a forward slash path with a file in the same directory???&amp;nbsp; I do not want to put the file in&amp;nbsp;a subfolder because it is tied to masterpages and images with relative paths. Also, please do not tell me to post in another forum, I just need a straight forward answer.&amp;nbsp; Thank you for your help!&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>