I have created a custom SharePoint site definition. ASPX pages are added to modules as element files, which are in turn part of features. The features are included in the site template using a feature stapler. I use the template to create a site using the New-SPSite PS command.
I recently moved one of my pages into a new feature. However, when I try to access the page, I get a 404. I can see that the file was deployed and the path is accurate in elements.xml.
Looking at the ULS logs, I see that SharePoint still refers to the old hive path to get the file. Is this because the page was part of my site template? Do I need to create a new version of my site definition and create an upgrade path?
http://msdn.microsoft.com/en-us/library/ms369165%28v=office.14%29.aspx
Olorin