Adding a Subdirectory to SiteUrls.config/SiteUrls_Override.config in Community Server - SnippetGood most recent 30 from http://snippetgood.com 2010-09-07T05:12:11Z http://snippetgood.com/feeds/question/47 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://snippetgood.com/questions/47/adding-a-subdirectory-to-siteurls-config-siteurls-override-config-in-community-se Adding a Subdirectory to SiteUrls.config/SiteUrls_Override.config in Community Server binky 2009-10-06T19:29:55Z 2009-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>&lt;location name="schedule" path="/schedule/" themeDir="schedule"&gt; &lt;url name="schedule_default" path="schedule.aspx" pattern="schedule.aspx" physicalPath="##themeDir##" vanity="{2}" page="schedule.aspx" /&gt; &lt;/location&gt; </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>&lt;location name="schedulestunts" path="/schedule/stunts/" themeDir="schedule/stunts"&gt; &lt;url name="schedule_stunt" path="ondemandfreepreview.aspx" pattern="ondemandfreepreview.aspx" vanity="{2}" physicalPath="##themeDir##" page="ondemandfreepreview.aspx" /&gt; &lt;/location&gt; </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>