I have a website that has xenforo as subdirectory.
I have recently put https with Let's encrypt (I have enabled it server-side with cPanel). People were able to access the website with http:// and they had problems because they were able to stay logged in with https:// but if they typed http:// they disconnected.
I have seen this article that shows how to force https redirects. That worked fine because now if you type http://mywebsite.com you are redirected to https://mywebsite.com. I have added this rule as the thread said:
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://forums.mywebsite.com/$1 [R,L]
The problem is that now some people can use the https:// version but others cannot and they have an error in the browser (page cannot be reached). If they use a proxy they can access the website and they have no more problems! How do I solve this?
Please note that:
I have recently put https with Let's encrypt (I have enabled it server-side with cPanel). People were able to access the website with http:// and they had problems because they were able to stay logged in with https:// but if they typed http:// they disconnected.
I have seen this article that shows how to force https redirects. That worked fine because now if you type http://mywebsite.com you are redirected to https://mywebsite.com. I have added this rule as the thread said:
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://forums.mywebsite.com/$1 [R,L]
The problem is that now some people can use the https:// version but others cannot and they have an error in the browser (page cannot be reached). If they use a proxy they can access the website and they have no more problems! How do I solve this?
Please note that:
- my website has the homepage index.php that is the following: <?php header('location: https://forums.mywebsite.com/'); exit(); ?>
- forums can be found at https://forums.mywebsite.com