Forcing https (ssl) on htaccess file

So you need to force your website to always be available via https here is a simple method

 

To force the HTTPS connection on your website, add the following lines inside the website’s .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  • ssl, https, forcehttps, websecurity
  • 0 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

How to force your site to redirect to https (SSL)

Overview You can force your site to redirect to its secure URL by creating a configuration...

How to generate a CSR code in your hostnasi cPanel account

  So you are on the process of purchasing an ssl certificate for your online account then you...

How to install an SSL Certificate in cPanel

SSL installation via cPanel is a pretty simple process, even if you have no special technical...

How to use SSL/HTTPS and to configure it to Magento ?

So you want to configure SSL/HTTPS to Magento ?   Well let's begin with  Magento 1.x To...

SSL certificates overview

Overview Adding an SSL certificate to your domain allows it to be accessed over a secure...

Powered by WHMCompleteSolution