TYPO3 - Page not found when accessing page via http - iis

I have a TYPO3 10.4.16 page on a Windows Server 2019 IIS 10 Server.
The page is accessible via https. I have created a redirect on my IIS Server to rewrite the URL from http to https. When I enter the page with http on a device, where I never entered the URL before, I get the error Page Not Found. The page did not exist or was inaccessible. Reason: No site configuration found.
When I enter the page with http on a device, where I entered the URL with https before, the redirection to https works.
How can I edit my TYPO3 site configuration to handle also the http version of the page? Or how can I create a redirect in TYPO3 from http to https?
Thank you very much!

The difference between the device where you never used the URL and the other device is that the browser remembers that https is available for that domain and always prefers that.
So obviously the redirect from http to https in the IIS settings is not working correctly. To check that the redirect is really working you can use curl on the command line:
curl -IL http://domain.tld
-I shows only the header data
-L follows redirects
There is no way to handle the https redirect within the TYPO3 configuration.

Related

Issue with redirection in IIS 10

I have hosted a website in IIS but the site is always redirecting to Https localhosts eventhough i provided only http protocol port.
but when i browse the site it is redirecting to
https://localhost/
No idea why this site is behaving like this ?
There must be an HTTP redirect rule, click on your site, and then find the URL rewrite component, delete the rules you don’t need, so that no redirection will occur.

How to redirect from http to https with a redirect on IIS

I would like all traffic to my site to use https on IIS.
How do I configure a redirect to do that?
(Note: this will be self answered, as there is no correct answer anywhere on this.)
This blog link supposedly answers this question:
However, no-one so far as been able to get it the answer to work, as you end up with an endless loop of a redirect redirecting to a redirect.
So after working with this and resolving it, here is the correct answer:
Install the Http Redirect Feature if it is not already installed.
Create two sites, not one site. The first site is the insecure site which is bound to http only. Do not bind https on this site.
The second site is your secure site. This is bound to https and your security cert.
On the insecure site, add the http redirect: "Redirect requests to this destination: https://example.com" Select status code of Permanent (301).
Test. Any request to http://example.com will be forwarded to https://example.com.

Site automatically changing links to https

I am having few issue with improper URL redirection.
My site is a MVC https site and I have few footer links which are supposed to be http.
In the layout file, I set the URL to www.example.net but when I click the link, it tries to browse as hhttps://www.example.net. If I add hhttp://www.example.net then it tries to browse as hhttps://http//www.example.net
So, can anyone please suggest if any links in the https site should be https as well? When I debug the code and it doesn't have https settings, the URL redirection works fine but only when I put it in server with https, this issues comes.
Note: I added a extra h infront of http or https to fix the no url rule.

Secure HTTPS not working in Magento under CloudFlare

Here is my problem:
I have set magento to run under SSL setting the frontend secure option on admin to Yes
The site run under cloudflare
I set a page rule on cloudflare (according to the support instruction) that goes:
http://fabshopper.com/*
Always uses HTTPS
I'm using ultimo theme in magento
When I open the site in the browser it shows the HTTPS connection but most of the content is not load because the links are HTTP (including CSS, Script, images).
Ultimo theme is supposed to create link either HTTP or HTTPS according to the magento settings, but the link I'm getting are HTTP
I ran out off ideas :(
Can anyone give me an hint?
Thanks
I go through link provided by you and found many URLs loaded from insecure server. check below few of them:
The page at 'https://www.fabshopper.com/' was loaded over HTTPS, but displayed insecure content from 'http://www.fabshopper.com/skin/frontend/ultimo/fabshopper/images/fab_shopper.png': this content should also be loaded over HTTPS.
The page at 'https://www.fabshopper.com/' was loaded over HTTPS, but displayed insecure content from 'http://www.fabshopper.com/media/wysiwyg/autumn-cardigans.png': this content should also be loaded over HTTPS.
Just change the HTTP to HTTPS of all insecure urls and it will solve your problem.

How to redirect https to subdomain?

I want to redirect both http://www.mysite.com and https://www.mysite.com to https://secure.mysite.com under IIS7.5.
I've installed the HTTP Redirect module, which seems to work fine for http:// redirect, by setting up a site binding to http and a HTTP redirect to (exact site)
But how do I redirect https://www.mysite.com to https://secure.mysite.com?
If I set up a HTTPS binding for the website it seems to bind to www.mysite.com automatically, even though the SSL certificate is for secure.mysite.com, and there doesn't seem to be any way to split the two.
Ideally I'd like to do this via IIS configuration rather than code..

Resources