Today I ran into a frustrating issue. I was creating some custom site definitions and when I attempted to provision a site, I would get the “404 Not Found” error. Instead of creating a default.aspx, I created several derivatives with different names (e.g. defaultxxxxx.aspx). The issue was in the ONET.XML file in the modules section, I referenced the correct URL but did not give it a name.
<Module Name=”CustomSite01” Url=”" Path=”">
<File Url=”default01.aspx” Name=”default.aspx” NavBarHome=”True” Type=”Ghostable“>
<NavBarPage Name=”$Resources:core,nav_Home;” ID=”1002” Position=”Start” />
<NavBarPage Name=”$Resources:core,nav_Home;” ID=”0” Position=”Start” />
</File>
</Module>