Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

How to Verify Redirection for HTTPS

         

jediviper

8:22 am on May 11, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



I have noticed a property that has been prepared fro GSC from the IT team in the past and there are 2 version of the same domain... one with http and one with https

Both of them have Impressions/Clicks in GSC, but the https has much bigger numbers. Is this normal? Or it's like duplicate content?

The redirection from http to https is a 307.




[edited by: Robert_Charlton at 9:21 am (utc) on May 11, 2020]

[edited by: not2easy at 1:38 pm (utc) on May 13, 2020]
[edit reason] fixed formatting [/edit]

phranque

10:56 am on May 11, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



The redirection from http to https is a 307.

that looks like a HSTS redirect.

not2easy

4:55 pm on May 11, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



It only takes a moment to try to visit an old URL to see whether or not it is redirecting to the preferred version. Always test using a cleared browser cache. Basic developer browser tools will tell you whether it is a 301, a 302 or something different. If it is not a 301 response you will want to see what's wrong there. To sort out the differences you can view your server's access logs and/or error logs.

jediviper

5:39 am on May 12, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



@phranque and @not2easy I guess it's advised to ask my IT team to change the 307 to 301 right?
I guess it makes more sense for SEO purposes, as the http to https is a permanent redirection.

phranque

11:10 pm on May 12, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I guess it's advised to ask my IT team to change the 307 to 301 right?

i would first check the web server access log file to see if the 307 is being generated by the server.
where are you seeing the 307 status code?
are you sending HSTS headers with the response?
if it is in fact an HSTS-related redirect, it may be the user agent generating the 307.

jediviper

8:50 am on May 13, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



I see the 307 status through the SEO minion chrome extension and also at the Network console of the Chrome Inspect mode. It's the first status that loads at the console.

I have no idea what is the " HSTS headers with the response".

not2easy

11:49 am on May 13, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



One of the best benefits of WebmasterWorld forums is that you don't need to wait around for others when you need to know something. You can always use the Site Search feature and use your favorite Search tool to find what you need to know. ;)

Try this: [google.com...]

(edited to add - that is a list of discussions on WebmasterWorld to help with the HSTS question.)