Redirection on nginx from URL https://www.domian.io to https://domain.io - nginx

I have a site for which I want to redirect from the subdomain www.domain.io to domain.io.
From http it works very well, but when I try to access the site with https before it, that is https://www.domain.io, the redirection does not take place.
I want the redirection to work on https as well as on http.
Error appears only on Firefox. On other browsers it works perfectly.
https://www.domain.io do not redirect to https://domain.io
The received error looks like this image
Can someone help me?

Related

How to solve multiple landing page redirect in Wordpress at once?

I have a Wordpress website and want to have in form of https://website.com. When I test it on GTmertix in form of http://www.website.com, I receive multiple landing page redirects like this:
Avoid landing page redirects for the following chain of redirected URLs.
http://www.website.com/
http://website.com/
https://website.com/
I have set the base domain on https://website.com format in Wordpress, and also I have done many things on .htaccess file to redirect http to https, but could not solve this issue.
May you help me please?
Without the domain, it is difficult to diagnose (and even then it may be difficult without seeing your .htaccess). Something is obviously redirecting http://www.example.com to http://example.com rather than directly to HTTPS.
You could try looking further up the chain, such as at your domain registrar/DNS provider. If you are behind a proxy like Cloudflare, I'd also be curious if this happens when you add the instance's IP address in your hosts file and try connecting directly - that would at least determine if the issue exists on the host itself or further up the chain.

Disable https for a specific page with a 301 redirection

I have a website running with https on all pages. I would like to make a 301 redirection for a specific page to make it available only with http (not https).
This is my code :
Redirect 301 https://www.example.com/a-page http://www.example.com/a-page
This does not work, i run a Wordpress website. How to make it runs with a simple way ?
Thanks
What do your .htaccess do to HTTP/HTTPS?
Are you forcing all users to use HTTPS?
Because you can make both be usable depending on how you want your server to handle the requests and what the browser user has requested.

Tumblr using https link instead of http

I tried to setup my blog on
http://anshulgarg.me
When I open the link, it opens normally, but after few minutes, when I refresh it, it starts to redirect it at https://anshulgarg.me
My problem is similar to this one:
Force Tumblr to use http link instead of https
What should I do to use http over https on Tumblr?
The problem was with my browser.
I had "HTTPS Everywhere" extension installed which was forcing chrome to use HTTPS over HTTP.

When doing a redirect, Akamai is redirecting to orignial server, Why?

Please bear with me because I am not very familiar how akamai works.
I am having issues with redirection. We are redirecting links domain.com/a/b to domain.com/c/d. However, akamai does not respect domain.com and the 301 goes to the original server. To illustrate:
http://akamai.ex.example.com/a/b
Redirects to
http://original.ex.example.com/b/c
When it is supposed to redirect to
http://akamai.ex.example.com/a/b
What is going on and how can this be resolved?
I can't tell why, but I can tell you how to work around it:
Path-absolute (or host-relative?) redirect URLs of the form "/b/c" completely bypass the issue, and will make the browser go to the same host (and port, and protocol.)
(There's a typo in the RFC, relative URIs are allowed in the Location header, all browers support it anyway: http://trac.tools.ietf.org/wg/httpbis/trac/ticket/185)

Losing query string on redirect from https to http

I have a site https:// www.mysite.com that runs completely using HTTPS (I redirect http to https in IIS). This all works fine.
I have an old version of the site http:// old.mysite.com which some users are still running on that is running over HTTP only. This all works fine.
There is 1 URL that my new site redirects (using a Response.Redirect in the global.asax) to my old site. For example the user requests https:// www.mysite.com/page.aspx?query=string and I redirect them to the old site http:// old.mysite.com/page.aspx?query=string. The redirect works well except that the query string is missing when it gets to the old site.
The URL that I have to redirect comes from a url embedded at customer sites, so I can't just update them all to point to the old site. I tested and this all works fine when I run my new site under HTTP so the transfer is HTTP to HTTP, but it fails when I do HTTPS to HTTP.
Any ideas on what the problem is?
Thanks,
Jim
Alright I got it figured out so I'll post in case anyone else hits the issue. I was using the HTTP Redirect module in IIS 7 to redirect any HTTP traffic to HTTPS for my new website. For the url to redirect to I just had 'https://www.mysite.com'. I found some variables that you can add to the redirect url to keep the query string. So once I updated it to 'https://www.mysite.com$S$Q' it worked.

Resources