-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portal Alias not enforcing Redirect PortalAliasMapping setting on multi-portal/multi-alias sites #4306
Comments
Can anyone confirm this issue? I am having to use the URL rewriter in web.config to address this. |
I have the same issue with canonicals. So, also a problem with SEO. |
Thank you for acknowledging the issue @Tychodewaard. I'm still having it for months now. The only way I can resolve has been with the URL Rewriter. |
Could it be related to #3081? Which would mean that multiple things in that area stopped working. |
@Tychodewaard I don't think it is related to that issue. It is my hunch it is related to #4157 since I was also having that issue and perhaps the fix for that one introduced this issue. |
@tpperlman Is the issue reproducable? I mean, can you set up a clean site and create the problem? Me and my colleagues spent quite some hours to fix #2841 last year, and this looks related, from what I read in this issue. |
@skamphuis It happened on a couple of recent new installs and upgrades. I documented it as best as I can. |
I have recreated a similar issue, with a slightly different situation on an 9.8.0 installation as well. A specific bit of this example. Primary Alias - Is a child portal Additional aliases are other domain names Example: Primary - mysite.com/child Additional |
Description of bug
On a multi-portal site with multiple aliases, DNN does not redirect to the primary URL when the PortalAliasMapping is set to Redirect. I have the same domains with and without the www prefix, and I am trying to redirect all traffic to the www one but it does not redirect. I have verified this on two separate DNN v9.8 sites.
I have verified that the aliases are setup properly in the PortalAlias table, the primary domain's IsPrimary column is set to 1, and the primary alias also matches the DefaultPortalAlias in the PortalSettings table.
Steps to reproduce
Create a multi-portal DNN installation and set multiple aliases for each portal. Set one domain with the www prefix and another without the prefix.
Current behavior
After setting the aliases, load the www and non-www aliases and notice there is no redirect.
Expected behavior
When the PortalAliasMapping is set to Redirect, it should always redirect to the primary alias.
Additional context
This may or may not be related to issue #4158
This also may be problematic from an SEO perspective since there is no canonical tag and sites could get indexed using multiple aliases.
Affected version
Affected browser
The text was updated successfully, but these errors were encountered: