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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Alias Redirecting To Wrong PortalAlias Redirecting To Wrong Portal
Previous
 
Next
New Post
3/5/2009 11:57 PM
 

I've restored a DNN site 9.4.2 to a new host provider in a shared hosting environment (limited ability to configure IIS) with a new host domain. Even after modifying the web.config connection string and the alias in the PortalAlias table to point to the new domain, the root URL redirects to the HTTPAlias of the wrong portal. For example, when I try to view Desired.PortalSite.com, it is redirected to Wrong.PortalSite.com.

PortalAliasID      PortalID    HTTPAlias   
1                0        Wrong.PortalSite.com
2                1        Test.PortalSite.com
3                1        Desired.PortalSite.com

The also site redirects if I put a TabID in the URL for the desired portal (Desired.PortalSite.com/?TabID=122) or will give the following err if I put a PortalID in the Url (Desired.PortalSite.com/?PortalID=1)

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +101
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +76
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3394
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

If I update the PortalAlias table so the PortalID=0 has the HTTPAlias pointing to the Desired.PortalSite.com, I get a redirect loop (Firefox). I did note that currently I am able to view .NET pages that are not in the DNN application (Desired.PortalSite.com/Testform.aspx) but am not able to view any of the portal site pages. Also I did initially install DNN 4.8 and had it running on this server but removed it prior to restoring this DNN site from another server.

I believe I need to make a configuration change to resolve a redirect problem I have, but need some guidance on what must change. I'd appreciate any suggestions, Thanks.

 
New Post
3/6/2009 12:39 AM
 

 this sounds weird, please make sure, there is no portal specific information added to the web.config and the portal alias mapping is correct. I have no other clue, if the domain is correctly pointing to your DotNetNuke web site


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/6/2009 8:11 PM
 

Yes, sounds wierd. Because I have been struggling with a redirect loop for quite a while in previous attempts, I resorted to upgrading the source host installation to the most current DNN version since there was said to be a redirect bug that the new version overcame:
support.dotnetnuke.com/issue/ViewIssue.aspx?id=7159&PROJID=2

The only differencesI did not see any reference to any porta;-specific info though notice differences from the default DNN web.config are the following:

-- maxRequestLength for large file uploads and useFullyQualifiedRedirectUrl caught my attention
httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192"

machineKey validationKey (key is different)

I'm almost at the point where I'd hire an expert to assist unless I find a solution soon. Any additional insights would be appreciated.

 

 
New Post
3/9/2009 11:06 PM
 

(How discouraging that even Sebastian does not recognize the source of this problem) 
Since the DNN web.config has many configuration settings, what might I look for that is portal-specific?

I've reviewed the EventLog and the IIS logs and did not find any more clear indication of the cause of the issue. The EventLog mainly logged when the application was shutting down/up and limited info for the page exception. The IIS logs showed I was getting 302 (temporary redirect) and 301 (permanent redirect) status codes for the redirects and 200 codes for the ASPX/CSS/GIF files I was able to load.

Wondering if DNS plays any part in this, I ran a trace route and other than seeing about 23 hops, the trace resolved each time without a timeout. I don't think the ISP site setup should have any bearing on the redirects if some pages resolve, but I can't say I understand how they are setup even after asking questions of their tier 1 support people who have only given limited and inconsistent info.

The ISP has the site setup in a subdirectory of the root ("home") so that log files and other resources are centralized and accessible in your root directory. I noticed that both of these URLs resolve for these static files and I wasn't certain if this made sense:

Desired.PortalSite.com/home/DNNSkin.htm
Desired.PortalSite.com/DNNSkin.htm
Desired.PortalSite.com/home/Portals/1/logo.gif
Desired.PortalSite.com/Portals/1/logo.gif

Please let me know if there are any other observations I can give that may be helpful to asses this redirect to the wrong portal.

 
New Post
3/9/2009 11:17 PM
 

Hmmm

Could you comment here please if you can reproduce this issue? [UPDATE - Ah maybe not, you are not using 5.0.1]

http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=9459

,,, stating what you wrote here and pasting the URL of this post... thanks.



Alex Shirley


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Alias Redirecting To Wrong PortalAlias Redirecting To Wrong Portal


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