Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Move DNN to a new domain?Move DNN to a new domain?
Previous
 
Next
New Post
3/1/2006 9:30 PM
 
I recently had to transfer the domain my DNN install was running under to a business partner for use on a different website.  I retained the original website however, and want to point a new domain to the old website.  I've registered the new domain and have it pointing at the IP address where the DNN install is, but all requests to www.newdomain.org get redirected to www.olddomain.org.

Does anyone know what might be causing this to happen and know how I might be able to fix it?

Thanks,
Craig

 
New Post
3/1/2006 10:05 PM
 

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*:

  1. Go to the site using your browser
  2. Login as Host
  3. Go to Site Settings
  4. Scroll to the bottom of the page (you will see the list of aliases)
  5. Add the new alias

Second, if you can access the database:

Using SQL Enterprise Manage

  1. Open SQL Enterprise Manager
  2. Expand the nodes (left screen) until you see your database
  3. Expand your database
  4. Click Tables
  5. Scroll to the PortalAlias table
  6. Right Click and Select Open Table > Return All Rows (SQL 2000)
  7. Enter the Portal ID and Alias (i.e. 0 and www.mysite.com)

Using Query Analyzer

  1. Open Query Analyzer
  2. Select your database from the database dropdown
  3. Use the script provided below (paste it into QA and modify as appropriate)
  4. 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:

  1. Open Windows Explorer
  2. Browse to C:\WINDOWS\System32\Drivers\etc\
  3. Open the HOST file using Notepad
  4. Add and entry at the bottom of the file, IP, space, alias (i.e. 127.0.0.1   www.site.com)
  5. Save the file
  6. 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.


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
3/2/2006 2:12 AM
 

Robert,

Thanks for a really good reply.  It was very informative, and well written.  I really appreciate it.

Unfortunately, it still isn't working.  I went into the database and changed the existing Portal Alias for www.oldurl.org to www.newurl.org. After that it stopped returning the 302 with www.oldurl.org, but I'm now getting a 302 with a redirect to www.newurl.org.  This causes IE to hang, and Firefox to report that the webhost is returning a redirect for this address that will never complete.  I determined what it was returning exactly by putting ethereal on it.

I'm sort of stumped at this point.  Anyone have any other ideas?

--Craig

 

 
New Post
3/2/2006 2:21 AM
 
Can you get me a screenshot of the table with the alias in it?

Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
3/2/2006 2:32 AM
 
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Move DNN to a new domain?Move DNN to a new domain?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out