I manage rip-off SharePoint team site. Some reason, I cannot rename default.aspx. If I rename default.aspx -> demo.aspx and I create new site collection, it gives me 404 error message. Also, if I change name default.aspx -> demo.aspx and I change it back to default.aspx, site collection throws 404 error message. Visual studio solution bust up some reason.

I have set Page scope to "Web". default.aspx content


<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="HomePages" Url="" RootWebOnly="FALSE" Path="Files" xmlns="http://schemas.microsoft.com/sharepoint/">
<File Url="default.aspx" Level="Published" Path="default.aspx" />

Question is, how I can rename default.aspx or should I create new page?

If I need to create new site, example would be nice.

  • Rename the file, change Url and Path in the above XML. Problem will still be that you would have to set your demo.aspx as default page or navigate directly to the URL – Robert Lindgren Dec 11 '13 at 8:16
  • If I rename file and I edit Elements.xml, how I can change default page in visual studio project? This is stupid, but I can not find it anywhere, where I can define default page. – user21216 Dec 11 '13 at 8:50
  • Take a look here: nikpatel.net/2011/10/24/… – Robert Lindgren Dec 11 '13 at 8:57
  • Thank you, I tried that but it didn't work. I also tried add this <Property Key="WelcomePageUrl" Value="~/Home.aspx"/> – user21216 Dec 11 '13 at 10:25
  • You call it demo.aspx above – Robert Lindgren Dec 11 '13 at 10:28

I think the problem is that you aren't renaming the page through the SharePoint interface.

  1. Navigate to the page you wish to rename
  2. Site Settings > All site content > Pages library
  3. Right click the page
  4. Select edit, rename the page/url in the box.
  5. Save your changes
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.