If the AJAX fails to load when site placed in the subfolder then you have to place the site within the subfolder using the below rewriting rule in a web.config file at the root level:
Code:
<rule name="Rewrite to folder1" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.mydomain.org$" />
</conditions>
<action type="Rewrite" url="mysubfolder/{R:1}" />
</rule>
The generated code in default.aspx produces:
Code:
<script src="/mysubfolder/ScriptResource.axd?d=JqgWhplkVbNDB-O-
ThhHizUoDTYJEM-feibV4yvf46HwrI2N5TzSy72-olJ4bTMQzD63KWlitLqI2oLdioZV-Q2&
t=ffffffff966badba" type="text/javascript">
</script>
But the generated code needs to produce:
Code:
<script src="/ScriptResource.axd?d=JqgWhplkVbNDB-O-
ThhHizUoDTYJEM-feibV4yvf46HwrI2N5TzSy72-olJ4bTMQzD63KWlitLqI2oLdioZV-Q2&
t=ffffffff966badba" type="text/javascript">
</script>
Bookmarks