WSS default.aspx replacement

Aug 17, 2011 at 1:54 PM
Edited Aug 17, 2011 at 1:58 PM

I have noticed in the documentation that there is a FileToProvision and in the example it is using the default.aspx page. I have been trying to get this to work and haven't been able to. What I am ultimately trying to do is to delete the existing default.aspx page and replace that with my custom default.aspx page. I have tried deploying that as a separate feature and using WebFeature, that copies the masterpage and the default.aspx but it doesn't delete the existing and rename the new one or set my masterpage as the default. Is there a way to delete existing default.aspx in wss and insert a new one from a feature and also a masterpage as well as set that masterpage to the MasterUrl? I see there are elements for those things but I can't seem to get them to work.