Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JeffP's avatar
Level 3

Can i provide a redirect if ssl_protocol is not 1.2 ?

If a user is using windows 7 IE10 or below my site will just say "cannot connect". Can I add a redirect for those users and forward them to a different server to explain that they need to update their browser and so on? Thanks in advance

0 likes
2 replies
Cronix's avatar
Cronix
Best Answer
Level 67

Not sure on Apache, but with nginx I believe it would be something like

if ($ssl_protocol != "TLSv1.2") {
    return 307 http://other-server.com/upgrade-your-old-ass-browser
}

I'd be really careful though. What if a search engine isn't using tlsv1.2? You won't get crawled and potentially lose ranking. I'm also not sure what the appropriate status code would be for that scenario. I chose 307, but it may not be correct...

JeffP's avatar
Level 3

Thank you, I didn't even think about the SEO impacts. It always seems to be a trade off with something lol.

Please or to participate in this conversation.