Link to home
Start Free TrialLog in
Avatar of pgreetisada
pgreetisada

asked on

I have a newly installed SharePoint 2013 site that gives 404 error when trying to use the machine name as the address

I have a newly installed SharePoint 2013 server.  I can access the home page with the address http://sharepoint2013/sites/abc/_layouts/15/start.aspx#/SitePages/Home.aspx however if I just use the address which is the machine name of http://sharepoint2013 I get a 404 error.  The default website is turned off.  There is a binding for the sharepoint 80 site in IIS for port 80.  What am I missing to get this site to serve as the default website?
ASKER CERTIFIED SOLUTION
Avatar of Mohit Nair
Mohit Nair
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pgreetisada
pgreetisada

ASKER

That was the problem.  I created the site I wanted in the subdirectory from where I wanted to put it.  To move it do I have to do a backup/restore?
Yes.  

First backup the site under /sites/.  Backup-SPSite http://url/sites/site -Path "C:\dir\file.bak".  

Then you need to delete the site.  Remove-SPSite http://url

Now you can restore over the existing root site.  Restore-SPSite http://url -Path "C:\dir\file.bak" -Force
This was the answer.  Thanks for the help.