we really have no redirection for this to happen, we are using windows IIS server with plesk
Where are you seeing this?:
I don't see that.
A potential side effect of using "301 permanent" redirection is:
- if you get it wrong, the client will remember it "permanently" [for a very long time]
So you should only switch to 301 after you are sure the redirection works as expected.
Until then, I'd use "302".
That said, it looks good now.
But it might have been corrupted previously and your client remembers that.
Try another "fresh" client, or another browser, or clearing your browser cache.
i have tried it from different computers and browsers, even tried in incognito, when i type ezmethods.com or any version of the url, it redirects me to www.https//www.ezmethods.com, i am surprised that you are not facing the same thing, what exactly do you see?
In Internet Explorer:
http://www.https//www.ezmethods.com/
With curl
:
curl http://ezmethods.com/
<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="https://www.ezmethods.com/">here</a></body>
then
curl https://www.ezmethods.com/
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="http://www.https://www.ezmethods.com/">here</a>.</h2>
</body></html>
So the problem is NOT in the initial HTTP to HTTPS redirection.
The problem is within HTTPS [which redirects to a broken link]
as far as i am aware, the redirection is in plesk, but i tried all options, nothing works, there is no redirection in our code, this is just very frustrating, we have not been able to find where it is coming from, please help
please look at the screenshots above for the redirection done in plesk, this is how we do it for our other domains and we have never had any problems
The HTTP to HTTPS redirection is there and it is working as expected.
That seems to be where your problem is.
And it remains only because you are too certain it isn't there and have stopped looking there.
FYI
This is not a forum for IIS nor redirection problems.
[unless directly caused by certbot
or some other ACME client]
We/I am doing my best to help you.
i understand that this forum is not for redirection but i just asked if you can help, the same code/files were working fine on another server, this problem popped up when we moved to a newer server, from windows 2012 to 2019, this itself proves that there is no problem in our code, there is something in plesk setting, but we tried all options, nothing works
I have been trying to help you.
But you might find more/better help in a Plesk forum or in an IIS forum.
i know and i appreciate that, we posted on stackoverflow but nobody came up to help : (
Also maybe try ServerFault or:
and maybe even this MS IIS one
i have tried some of those and will look into it again, please let me know if you have any idea where this may be coming from
we just disabled lets encrypt redirect and the site is loading fine, it proves that the problem is in letsencrypt
That isn't a redirect that I have ever seen created by "LE".
Surely there were other steps involved, no?
Can you add the "LE" redirect and have it break again (to be sure)?
Can you show the step(s) you take to turn on "LE" redirection?
right now if you type ezmethhods.com, it will load the site fine without the SSL, as soon as I enable the "Redirect from http to https" toggle button, it takes me to http://www.https//ezmethods.com/, this proves that the problem is with lets encrypt, there is a bug in it, at least i was able to figure this much after months, and yes i can do again enable it if you want me to, but it will again break because i already tried it