How to change site URL in Sharepoint 2010

We've just migrated from SBS2003 to SBS2011, along with the Sharepoint 3.0 site we had on the SBS2003 box.  This was running as http://companyweb/sites/sharepoint30, not the default http://companyweb.

The site migrated fine, but (with the DNS entry changed) still only runs on http://companyweb/sites/sharepoint30 - we'd like to run it at http://companyweb.

How can we achieve this?  I know it can be done as the default Sharepoint site when SBS2011 is installed is at this URL.

I've read about alternate access mappings, but this is already set to "http://companyweb".

I'd appreciate step-by-step instructions as Sharepoint 2010 is all new to me!  Thanks.
David HaycoxAsked:
Who is Participating?
Justin SmithConnect With a Mentor Sr. System EngineerCommented:
You need to backup the site at /sites/sharepoint30, and restore to companyweb.  This will all be done in the 2010 environment.

You can do this via powershell or stsadm.


Justin SmithConnect With a Mentor Sr. System EngineerCommented:
It's not a matter of changing the URL, it's a matter of putting conent at the root http://companyweb.  From what you have described, there is nothing there.  So you need to move your current site around in the hiearchy.
David HaycoxConnect With a Mentor Author Commented:
That's pretty much it!  Needed to do some other bits as well, here's the step-by-step guide for the record:

1. In the Sharepoint 2010 Management Shell:
Backup-SPSite -Identity http://companyweb/sites/sharepoint30 -Path D:\Companyweb.bak

2. Sharepoint 2010 Central Administration:
Manage Content Databases
Click on Database Name (ShareWebDb)
Remove Content Database, OK

3. SQL Server Management Studio (run as administrator):
Delete database (ShareWebDb).

4. Sharepoint 2010 Central Administration:
Manage Content Databases
Add a content database
Database Name: ShareWebDb
Select search server, OK

5. Sharepoint 2010 Central Administration:
Create site collections
Add title and make sure the root "\" is selected in the URL box.
Add administrator accounts, OK

Then this command:
Restore-SPSite -Identity http://companyweb -Path D:\Companyweb.bak

But received the error in the "Code" window attached.
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

David HaycoxAuthor Commented:
Oops, ignore the last line about the error, it worked fine!
Justin SmithSr. System EngineerCommented:
Great!  Please close out the question.
Justin SmithSr. System EngineerCommented:
Yep, forgot to mention the db thing (can't restore site to same db).
David HaycoxAuthor Commented:
Expert's answer correct as an overview, but needed to figure out the various sub-steps involved.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.