We are still in the process of rolling out SharePoint, but we’ve got the server up and running and the primary site is working. We set it up as sharepoint.mydomain.com. I then created a new site called ‘Help Center’ and it’s URL was sharepoint.mydomain.com/help_center. After adding a bunch of content, and starting to plan to roll it out we decided to change the URL to sharepoint.crowholdings.com/help (just because we are picky like that). I did this by going to the site (at the original URL), going to Site Settings>Title, Description, and Icon, and in the URL name box I changed ‘help_center’ to ‘help’ and clicked OK. That’s when all hell broke loose. I got an error, and unfortunately I did-not capture it before moving on so I don’t remember exactly what it said – but I noticed that in the address bar it was still showing the old URL (/help_center/) so I tried changing it to the new URL (/help/) but then I got a 404 error. I tried IISReset, and even rebooted the server – but I still get a 404 error every time I try to access the page. Back on my primary site, the URL on the Help Center tab has been updated to the new URL (sharepoint.mydomain.com/help/SitePages/Home.aspx), but when I click it I just get the 404 error. I can’t access the site with the new URL or the old URL.
I can still see the site and all of it's assets in the site manager, but I still get the 404 error when I try to access any of the site settings from the menu (site settings, people and groups, advanced permissions, or general settings). If I try changing the URL in the address bar from the new name to the old name, i get a different error that just says 'file not found'.
I also tried using the stsadm commands (referenced here: http://technet.microsoft.com/en-us/library/cc263508.aspx), but I get the following errors:
- When I try using the NEW name, I get the error: The site sharepoint.mydomain.com/help could not be found in the Web application SPWebApplication Name=sharepoint.mydomain.com.
- When I try using the OLD name, I get the error: 0x80070002There is no Web named "/help_center".
In SharePoint Designer, I can connect to sharepoint.mydomain.com, and I can SEE the sub-site called 'Help Center' (it shows the URL /help/), but when I try to connect to it I get this: Server error:
The URL "sharepoint.mydomain.com/help/_vti_bin/_vti_aut/author.dll"; is not contained within a Microsoft SharePoint Foundation site.
When I try to run the PowerShell cmdlets provided in my original post, I can't get past the first line before I get this error (same error when I use the old and new URL):
Get-SPWeb : Cannot find an SPSite object that contains the following Id or Url: sharepoint.mydomain.com/help. At line:1 char:18 + $help = get-spweb <<<< sharepoint.mydomain.com/help + CategoryInfo : InvalidData: (Microsoft.Share....SPCmdletGetWeb: SPCmdletGetWeb) [Get-SPWeb], SPCmdletPipeBindException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetWeb
'get-spweb without parameters' gives me an error that I need to provide a full URL or spsite object. When I run get-spweb http://sharepoint.mydomain.com it just comes back with sharepoint.mydomain.com under URL. When I run get-spsite, I get a list that mainly contains root sites (we have a few for our AX/CRM environment), and then I do see sharepoint.mydomain.com/sites/DMS which is another sub-site I created - but I do-not see the Help Center site listed.
I found this script on another thread (the one referenced at the bottom of my original post), and it returns a list that includes one titled 'Help Center' with the URL /help:
$site = Get-SPSite "http://sharepoint.mydomain.com" foreach ($web in $site.AllWebs) { $web | Select-Object -Property Title,Url | format-table -auto }
Any other suggetions would be greatly appreciated! Thanks! ][Q][
Original post: https://stackoverflow.com/questions/12359661/sharepoint-2010-404-error-after-renaming-subsite Similar post: https://stackoverflow.com/questions/1673678/sharepoint-404-error-after-renaming-subsite/12358909#12358909
help - Explicit inclusion