Yes, you read that right. I need HTTPS to HTTP for Safari only. Because all links referring to the site anywhere are HTTPS.
I have a website that has an SSL certificate, and normally we force redirect all traffic to HTTPS via .htaccess.
I've got a problem for Safari only, and would like to FORCE all HTTPS traffic to HTTP FOR the Safari user agent ONLY. At the end of the day I need to cater to the lowest common denominator of Safari version that's likely to hit the site, regardless of how I personally feel about it. The HTTP>HTTPS redirect basically causes a lot of older Safari versions to "fail to connect to server", and the website is propagated via backlink across the internet via https urls only. Even if peoples devices spoof, hide or not report their user-agent, I don't care, I just need to widen the net as best I can.
I want:
IF user-agent=Safari
GO FROM https://example.com
GO TO http://example.com
Would this work? I know nothing about regex to be honest.
### Redirect Safari to HTTP
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^(?!.*Chrome).*Safari$
RewriteRule /(.*)l https://example.com/$1 [R]
RewriteRule ^(.*)$ http://example.com/ [L,R=302]
Thank you in advance for any help you can provide.