Skip to main content

https redirection

Comments

3 comments

  • cPanelMichael
    Hello :) To clarify, are you seeking to configure your website so that access over "http" is completely disabled, or do you want access attempts redirected to "https"? Thank you.
    0
  • Thorgalalix
    i want just when i user come to my website only https protocole is enable. If can disabled http it's also good.
    0
  • quizknows
    If you want the site to only allow SSL access, and not normal http, you can use a basic rewrite like this one:
    RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
    This would go in the main .htaccess for that account at the location /home/USERNAME/public_html/.htaccess
    0

Please sign in to leave a comment.