You need to add the new domain as an alias in the portal.
There are two ways to do this.
First, if you can assess the site*:
- Go to the site using your browser
- Login as Host
- Go to Site Settings
- Scroll to the bottom of the page (you will see the list of aliases)
- Add the new alias
Second, if you can access the database:
Using SQL Enterprise Manage
- Open SQL Enterprise Manager
- Expand the nodes (left screen) until you see your database
- Expand your database
- Click Tables
- Scroll to the PortalAlias table
- Right Click and Select Open Table > Return All Rows (SQL 2000)
- Enter the Portal ID and Alias (i.e. 0 and www.mysite.com)
Using Query Analyzer
- Open Query Analyzer
- Select your database from the database dropdown
- Use the script provided below (paste it into QA and modify as appropriate)
- Execute the script
[Script]
INSERT INTO [dbo].[PortalAlias]([PortalID], [HTTPAlias])
VALUES(<PortalID,int,>, '<HTTPAlias,nvarchar(200),>')
[/Script]
NOTE: Replace "<PortalID,int,>" with the PortalID and "<HTTPAlias,nvarchar(200),>" with the alias (i.e. www.site.com)
* To access your site after the DNS has been changed you can lie to your system and make it believe the alias/URL points to a different IP by using your host file. To do this, do the following:
- Open Windows Explorer
- Browse to C:\WINDOWS\System32\Drivers\etc\
- Open the HOST file using Notepad
- Add and entry at the bottom of the file, IP, space, alias (i.e. 127.0.0.1 www.site.com)
- Save the file
- Browse the site
NOTE: Be sure not to disturb any of the other entries etc and don't forget to remove this entry once you are done.
Hope this helps.