Can I automatically direct visitors to my site to use secure URLs?
Yes, you can - provided that you are using our dedicated IP plan, and have purchased a secure SSL certificate from us.
To redirect all visitors to your site to a secure URL, i.e. https: instead of http:, create these entries in the .htaccess file in your public_html directory:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Change example.com to match your site's domain name, of course.
Comment
or post as a guest
Be the first to comment.