How to load pages only on https even an http request - url

I followed the steps here: https://gridscale.io/en/community/tutorials/iis-redirect-http-to-https-windows/
and everything looks the way it should to me. If I go to my site with 'https://' the site loads normally, but if I try to go to the site with 'http://' instead of rewriting the url the site does not load. I confirmed that I am using IIS 10 and it is on Windows Server 2016. How can I make the server load http requests over https?

Related

iis replaces url with strange pattern

i am building a web api and everything works fine on my localhost iis express.
But when i publish my application to my normal iis, the iis replaces a part of the url with a strange pattern that i have never seen before
This leads to an 404 error everytime, cause the IIS replace the link in every browser!
why is that?
IIS Express API Link:
http://intranet-bla/crmServer/crmGet/getSomeThing?id=1978338358
IIS API Link:
http://intranet-bla/crmServer/(S(nsz24dspha255yzcyy2c4eqh))/crmGet/getSomeThing?id=1978338358
EDIT:
The 404 Error was gone after renaming the http-handler, the strange url is still there but isnt a issue anymore

Uncaught DOMException

Migrating my website to a secure server, a frame is being blocked by browsers because of a security issue which doesn't happen on my existing website, which is hosted on an http server. [Google Chrome Developer Console screen shot][1] [1]: https://i.stack.imgur.com/wQkpr.jpg
The page should load a calendar, but it does not do so.
I'm not a coding expert, and don't know how to resolve this. The issue happens when loading this page:
Page which generates DOMException
However, the site under development is hosted on a non-public server. In order to access it, the hosts file on a Windows platform would need to have this code added: 199.168.187.45 mauitradewinds.com www.mauitradewinds.com secure.mauitradewinds.com m.mauitradewinds.com
Without adding that code to the hosts file, a browser would be redirected to my existing http site, which is not where the issue is happening.
I'd be grateful for guidance on how to eliminate this frame blocking.
My guess is you have a protocol conflict between your iframe and your main page.
Your main page is accessing through http and the iframe through https.
Your existing website most probably has a redirect from http to https which is why the issue is not happening on the existing site.
A web developer solved this by observing that adding www to the URL would prevent the DOMException, and allow page frame content to load.

website is redirected to "https" in firefox(it is normal in other browser)

I am open my website in firefox, but because of something wrong with my website, url is force redirected to https(I think this is because I write config.force_ssl = true in ruby on rails application).
But after I redeploy another ruby on rails application, firefox still force redirect to https, how can I make firefox do not redirect to https?
This is a browser caching issue.
Rails redirects to the HTTPS site using HTTP Status 301 (moved permanentely), the redirect is cached by Firefox.
Because the Host is always localhost, Firefox cannot differentiate between the individual Rails applications.
To resolve this problem try emptying the cache and/or use private browsing mode for testing.
I don't know about Firefox but in Chrome there's the option to completely deactivate caching for as long the dev tools are open.
Try to clear the cache. Firefox may remember http 302 - redirect permanently, and it does not know when you are using different rails application (as you probably run both on localhost:3000).

Azure + IE11 502 error

I ve hosted my asp.net MVC website in Azure. I am redirecting from the first page to the second via javascript and the url is like http://mywebsite.net/Home/Method/?value=someValueWithGreekCharacters
When I am trying it with firefox or chrome everything works fine.When I am trying it with IE11 i got this error message :
502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the
Web server (while acting as a gateway or proxy) contacted the upstream content server, it
received an invalid response from the content server.
When I m trying to run the website localy with VS2012 everything works fine with all browsers.
Also if I change the value in the url from greek characters to english there is no error in IE11 (but also no proper results).
I conclude that it has to be something with the combination of azure+ie11+greek characters in query string.
Is it a known bug?Any ideas?
Thanx in advance!

Azure MVC4 RequireHttps not redirecting to https site

I'm new with Azure and don't really know how it works. I have a local site working with MVC and I'm try to publish it on Azure, everything works fine until I set a RequireHttps into controller attribute in this case all I get is "This page can't be displayed" and the url is still http:// 127.0.0.1 instead of https:// 127.0.0.1
Is there any thing that I'm missing or need to be configured to make it work. I'm aware that i need to install certificate and other things but I want to get the page redirecting to https first even if it's not configured yet.

Resources