DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Upgraded site alias redirect to Home page instead of loginpage

 7 Replies
 1 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 14
New Around Here

Hi all,

I upgraded the site from 7.3.4 to 8.0.4 and noticed that upon typing the alias URL (https://pesdev.winc.com.au/genz), I get redirected to the Home page (https://pesdev.winc.com.au/genz) instead of https://pesdev.winc.com.au/genz/Login-Page (login page).

This was not the case in 7.3.4.

I have looked at the following:

web.config - no redirect rules

siteurls.config - same as previous version

portalalias table shows the correct HTTPalias for the portal - pesdev.winc.com.au/genz

site settings - In advanced settings and under page management, the Login page is designated as 'Login Page'. The login page itself is correctly configured. 

This is the message I get in the logs

 

AbsoluteURL:/Default.aspx

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:31306d21-6501-4443-bf19-f2a208304f76

AssemblyVersion:

PortalId:-1

UserId:-1

TabId:-1

RawUrl:

Referrer:

UserAgent:

ExceptionHash:ER1q/mo/1/FEb0mSwV4ktQ==

Message:Value cannot be null. Parameter name: type

StackTrace:

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at System.Activator.CreateInstance(Type type)

   at DotNetNuke.UI.Skins.Pane.IsVesionableModule(ModuleInfo moduleInfo)

   at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)

   at DotNetNuke.UI.Skins.Skin.InjectModule(Pane pane, ModuleInfo module)

InnerMessage:

InnerStackTrace:

Source:mscorlib

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:

Server Name: AEADPESSPS01

 

I am able to configure the SiteUrls.config file to read as follows:

      .*/gen/*

      http://pesdev.winc.com.au/genz/Loginpage.aspx

   

When I type in https://pesdev.winc.com.au/gen at the URL, it will promptly direct me to the correct login page

But not so for the http://pesdev.winc.com.au/genz, despite being setup in SiteUrls.config as

      .*/genz*

      http://pesdev.winc.com.au/genz/Login-page.aspx

   

So some rule is overriding the SiteUrls.config rule as per the genz alias.

 

 

Is there another config file that manages the redirection of sites or sets the rules? 

Regards,

Roy

Growing Member
Posts: 85
Growing Member

Hello - the genz expression as you have it, without a dot (.) before the final asterisk (*) will match zero or more "z" characters, so for example will match

apple/gen/banana 

as well as

apple/genz/banana

New Around Here
Posts: 14
New Around Here

Actually it was supposed to be 

      .*/genz/*

      http://pesdev.winc.com.au/genz/LoginPage.aspx

   

 

But even that did not work. It still directs me to the home page instead of the login page.

Thanks,

Roy

Advanced Member
Posts: 243
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
2 Engaged Reader
Engaged Reader
You are an engaged reader!
Do you have a custom login page set at 'Site Settings' - 'Site Behavior' tab - 'Login page'?

Does the problem look like this issue: https://github.com/dnnsof...Platform/issues/5044
Advanced Member
Posts: 243
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
2 Engaged Reader
Engaged Reader
You are an engaged reader!
Can you post a screenshot of your site settings/security settings?
New Around Here
Posts: 14
New Around Here

Here is the screenshot which is for version 8.0.4. (Sorry, couldn't get the actual screenshot image)

Page Management

   

   Splash Page:           

   Home Page:           Home

   Login Page:             Login Page                 (This has the account login module)

  Registration Page:    Login Page                (This has the account login module)

  User Profile Page:    Activity feed

  Search Results Page:    Search Results

  404 Error Page:      

  500 Error Page:       

 

Security settings

   Administrator:         SuperUserAccount

   Hide Login Control:   (unchecked)

 

 

This redirection issue seems to occur with sites that were created in version 7.3.4. Those sites that were created in later versions(eg 9.9.1 worked well). 

I tried to re-create the upgrade scenario from scratch starting with 7.3.4 to 8.0.4 and this is what I have encountered.

 

 

 

New Around Here
Posts: 14
New Around Here

Yes, quite similar, in that it keeps directing the home page.

However, when I try to click on a button within that Home page, it brings up the login page for credentials to be entered.

In version 9.9.1 where I have created other sites in that version, this redirection issue is absent.

 

 

 

 

New Around Here
Posts: 14
New Around Here

Hello all,

I have resolved this redirect issue and it was resolved in version 9.9.1.

To do this I had to go to Pages, select Home and then go to Permissions. Under Permissions, it had 'All users' ticked for View. I unchecked it and checked 'Registered users' instead. I then saved the Home page. 

My redirect issue was thus resolved. There was no need for web.config or siteurls.config changes.

Thanks all,

Roy

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved