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
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
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,
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.
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.
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,
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:
Awesome! Simply post in the forums using the link below and we'll get you started.