Solved

How to Change Sharepoint 2010 Web application URL

Posted on 2013-01-02
8
934 Views
Last Modified: 2013-01-03
Hello Experts,

I would like to change the public url to access my default sharepoint site from

http://portal/sites/coporate/SitePages/Home.aspx 

to http://portal.mycompany.com

I have tried Alternate Access Mappings with no luck.  I keep getting IIS7 logo infront of me when I try using  http://portal.mycompany.com

A simple step by step guide to resolving the issues would be great.
0
Comment
Question by:it_gsr
  • 3
  • 3
  • 2
8 Comments
 
LVL 14

Expert Comment

by:theruck
ID: 38737295
0
 

Author Comment

by:it_gsr
ID: 38737454
theruck

the solution in that link did not help me earlier.
0
 
LVL 14

Expert Comment

by:theruck
ID: 38737567
so check your DNS and IIS settings what can i say...
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 38

Accepted Solution

by:
Justin Smith earned 500 total points
ID: 38737742
You need to add a host header binding to your site in IIS for portal.mycompany.com.  SharePoint doesn't do this for you when you add an AAM.

However, this really doesn't change your URL, as you are asking.  You are asking about taking a site under the /sites directory, and making it a top level site.  Correct?

If this is the case, you either need to create a new web application for the portal.mycompany.com URL, or change the URL for your current.  Changing the URL for your current can be done a couple of ways.  Either you change the Default zone URL on your web app via Central Admin - Alternate Access Mappings, or you remove SharePoint from your current site via Central Admin - Web APp Mgmt - Delete (remove SP from IIS) and then extend the web app to an existing IIS site via Central Admin - Web App Mgmt - Select the web app - Extend - Use existing IIS site.  This will allow you to choose a new URL.

The second approach is best practice, as this way the new URL gets stored in the config database.

The final step is to back up your site at the /sites location, and restore it to the root.  This can be done via PowerShell backup-spsite / restore-spsite.
0
 

Author Comment

by:it_gsr
ID: 38739562
ACH1LLES,

This is what I have done so far:

I created an A record in my DNS server for "portal"
I created am AAM for http://portal/sites/coporate/SitePages/Home.aspx  to portal.mycompany.com
I edited the IIS bindings for the hostname portal.mycompany.com on port 80
I configured loopback connection check in registry just in case,
I opened port 80 in and out of the sharepoint server.
I stopped the default website in IIS which was running earlier (on port 80)
I restarted the server but still getting HTTP 404, webpage cannot be found

I will prefer creating a new web appication for portal.mycompany.com because I tested with a temp application on port 8088 using the same portal.mycompany.com and it worked. Is there a way I can keep my current sites and restore them to the new application?

Can I use port 80 for the new application without deleting the current application which is using port 80 in IIS?
0
 
LVL 38

Expert Comment

by:Justin Smith
ID: 38739918
So when you ping portal.mycompany.com, you get the correct IP address?  If you can access the site using http://portal, then it's not a firewall issue since that is using port 80 as well.  Did you bounce IIS after you added the host header for portal.mycompany.com ?

To answer your other questions, yes you can keep your existing site in the poral web app, and also restore and run a copy of it in a new web app for portal.mycompany.com.  Yes, you can use port 80 for the new web app without deleting the current.
0
 

Author Comment

by:it_gsr
ID: 38739934
ACH1LLES,

I got it to work finally, I created a backup of the current website collections and then created a new webapplication with portal.mycompany.com and then restored the backup into the new webapp.
0
 
LVL 38

Expert Comment

by:Justin Smith
ID: 38739938
Good to hear.

________________________________________________________________________
Follow me on Twitter!  @justinsmith317
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Move SharePoint data to a new server 3 60
Updating a SharePoint list from an Excel spreadsheet 7 47
Need to disable SSL Cipher 7 78
Review of apps API SSL Cert policy 2 22
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question