Learn More





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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Test Site Keeps Redirecting to Old DomainTest Site Keeps Redirecting to Old Domain
New Post
8/13/2014 5:40 PM

I have a customer who wants a major website makeover. It's gonna take a while to get the upgrade done so I am creating a test site based on their current site and then do a DNN 7 upgrade and put in a new skin and let them update their content. Then I will migrate the test site back over to their main site folder. 

I use Website Panel for my control panel and my root domain is The control panel lets me create subdomains for testing. So in the control I panel did the following. 

  • Created a new test domain as
  • Created a new website based on the domain - all this does is create the folder structure on the server
  • Created a new db named test 
  • Restored db from .bak file 
  • Added and to the portal alias table of my test db and removed the other aliases
  • Copied backup files to the new website folder
  • Checked security settings for folder files
  • Changed web.config to point to sestest db
  • Updated the hosturl in hostsettings table and the defaultportalalias in the portal settings table

When I try to hit it auto redirects back to their live website at I can access and I see the correct site. 

What else could be causing it to redirect? I changed the PortalAliasMapping from REDIRECT to NONE and that had no impact. I have triple checked that I updated the right test db and the web config correctly. I don't have any URL tool like URL Master running. I turned on Fiddler and hit the and it only shows I have checked IIS and the headers are correct and can't find anything else to check. I also took a real test domain I own and pointed it at the site and going to it still redirects. Hopefully this is something simple that I just overlooked. Any ideas would be appreciated. 

Forerunner Communications, LLC
DotNetNuke Integration Specialists

New Post
8/14/2014 5:00 AM
there might be a Domain address specified in web.config. otherwise you might Need to use fiddler or browser developer Tools to capture the communication between browser and Server and trace Redirects.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
New Post
8/14/2014 10:56 AM

I used Fiddler yesterday and it didn't show anything that I could find. Today I used Chrome to see what is going on and it is definitely a 301 redirect. Here is what I see. 

  1. Remote Address:
  2. Request URL:
  3. Request Method:
  4. Status Code:
    301 Moved Permanently (from cache)

But I have not idea where the redirect is coming from. I checked the web.config, siteurls.config and all the other .config files I could find and don't see anything about a redirect. Is there some other setting possible in the db where this could be set? I looked in IIS and there is nothing in the HTTP Redirect setting. I looked in Google Analytics and don't even have an account for this site. I created this site a few years ago and just don't remember doing anything abnormal, but I am getting a little old now.

Forerunner Communications, LLC
DotNetNuke Integration Specialists

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Test Site Keeps Redirecting to Old DomainTest Site Keeps Redirecting to Old 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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out