https redirection
hello,
i have set a ssl cetificat and my website continue to show /http://exemple.com
My website work with /https://exemple.com
But if i test standard adresse http it's work also.
I have cPanel.
What i must to do for have only protocole for my website?
Thank
Best regards
-
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 -
i want just when i user come to my website only https protocole is enable. If can disabled http it's also good. 0 -
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/.htaccess0
Please sign in to leave a comment.
Comments
3 comments