0

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

Elements.xml

<?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" />
</Module>
</Elements>

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.

7
  • 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 Commented Dec 11, 2013 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
    Commented Dec 11, 2013 at 8:50
  • Take a look here: nikpatel.net/2011/10/24/… Commented Dec 11, 2013 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
    Commented Dec 11, 2013 at 10:25
  • You call it demo.aspx above Commented Dec 11, 2013 at 10:28

1 Answer 1

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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