Answer the question
In order to leave comments, you need to log in
Redirects from http to https and a problem with apple devices?
Good day everyone! I didn’t know which section to ask the question in, actually installed an SSL certificate, registered redirects in .htaccess, such a problem that everything works fine, but it doesn’t go to the site from apple devices, it just reloads the page and resets .. I tried it from 2 phones and from a macbook, maybe something else needs to be added? although on another project everything works ..
Here is the code I use
Code
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Protocol} !=https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
# Rule for redirect from www.sitecom to site.com
# If you want to turn on this rule then delete symbol # in two next lines
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question