Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When the package is active using either templates or doc types, a match on certain pages will bounce back and forth between http and https?
Looking at fiddler traffic, it's like it's finding a match when it's under http and then redirecting to https, then when its under https, it doesn't find a match and sends it onto http!
This isn't happening for all pages mind, only for a recent page addition...
I don't suppose anyone has any ideas regarding this? I'm using the latest version of the package, Umbraco v4.7.1.
Thanks for reporting this. Seems a strange one, as I haven't had any one report this issue for a while (since v1.0).
Also interesting that a page will match on HTTP, but then not match against HTTPS. Which type of redirect setting are you using? (e.g. DocType Alias, NodeId or Template)
Thanks for the quick reply Lee, appreciated.
Initially just for doc type, when that didn't work I tried it for template but the same thing happened.
Not sure if you're a developer - but if you want to take a look at the source-code, see if you think there is anything obvious that might be causing this redirect?
Here's a link to the code that handles the redirect itself: https://bitbucket.org/vertino/https-redirect-for-umbraco/src/24b727fab891db54e558def6888dbd30408922c5/Our.Umbraco.HttpsRedirect/Events/ApplicationEventsHandler.cs?at=default
I'll happily patch-up/release any fixes.
Just seems strange that others are using this (in the wild) and aren't experiencing the same issue. Wondering if it could be an IIS issue (e.g. classic pipeline vs integrated mode) - not sure though.
Thanks again Lee, yep, I'd had a look before at the source in a .net decompiler to see what it was doing but nothing jumped out - what would be awesome if there was a debug mode where it would log the values out from the 3 Page object properties...
I'm seeing this issue too with 2.0.0.
The redirect is set to match one Document Type.
The loop only occurs on certain pages, and is only happening in certain environments.
We tracked it down, to an issue with the certificates not being correctly bond to the IIS Web Application.
I was having this exact same issue with v1.2.0, and spent some time looking at my IIS set-up and certificates and everything was correct but the redirect kept on happening. What was strange was it worked locally but not on my staging environment.
My solution was to changes the host names set-up in Umbraco.
On my local environment (that worked) I had this set-up in "Manage Host Names":
But on staging (that wasn't working) I had:
So on staging I change this to:
This worked! So check your hosts names.
Shanem, your fixed worked for me as well. Looks like the mark as answer function is broken though in the forums?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted