Adding a Subdirectory to SiteUrls.config/SiteUrls_Override.config in Community Server - SnippetGood most recent 30 from http://snippetgood.com2010-09-07T05:12:11Zhttp://snippetgood.com/feeds/question/47http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://snippetgood.com/questions/47/adding-a-subdirectory-to-siteurls-config-siteurls-override-config-in-community-seAdding a Subdirectory to SiteUrls.config/SiteUrls_Override.config in Community Serverbinky2009-10-06T19:29:55Z2009-10-06T19:29:55Z
<p>I couldn't figure this out for the life of me, so I'm documenting it here.</p>
<p>When you want to add a subfolder, how do you do it?</p>
<p>Here is a folder off the root <code>/schedule/</code></p>
<pre><code><location name="schedule" path="/schedule/" themeDir="schedule">
<url name="schedule_default" path="schedule.aspx" pattern="schedule.aspx" physicalPath="##themeDir##" vanity="{2}" page="schedule.aspx" />
</location>
</code></pre>
<p>To make an entry for a subdirectory of /schedule, we need to make a separate entry. This entry is for <code>/schedule/stunts/</code></p>
<pre><code><location name="schedulestunts" path="/schedule/stunts/" themeDir="schedule/stunts">
<url name="schedule_stunt" path="ondemandfreepreview.aspx" pattern="ondemandfreepreview.aspx" vanity="{2}" physicalPath="##themeDir##" page="ondemandfreepreview.aspx" />
</location>
</code></pre>
<p>I don't know if this is the proper way to do this or not, but it got the job done. Please leave improvements if you have any!</p>