知識庫

How to force redirection to HTTPS  列印本文

To force visitors to use HTTPS to access your site via your SSL certificate is to add the following to the top of a .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

這篇文章有幫助嗎?

相關文章

We don't enjoy suspending accounts
We only suspend accounts when absolutely necessary.If you are seeing a message that says your...
Firewall block - I can't connect to my website or email
If you find that you are unable to: open your website - it just times out or takes too long to...

Powered by WHMCompleteSolution