Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Example with Code redirection from http to https simple and fast with .htaccess
[Image: wherehtaccess_administradorarchivoshtaccess.jpg]

Chrome as well as Opera and Firefox began displaying unconfident alerts upon websites without having SSL records. Without having SSL, your site may display unconfident towards the site visitors. Consequently, utilizing an SSL-encrypted link with regard to security, ease of access or even PCI conformity factors is essential. This gets extremely important in order to refocus through HTTP in order to HTTPS.

 Find out more: The reason why SSL is crucial?

 To be able to pressure your own website traffic to make use of HTTPS, modify the actual rules within the. htaccess document. Prior to all of us proceed on to redirecting HTTP in order to HTTPS, here’s ways to modify. htaccess document. In the event that you know by pass in order to Redirection actions.
 Modifying. htaccess Document

 You will find instructions/directives within the. htaccess document which inform the actual server how you can behave using situations as well as straight impacts exactly how your site features. Typical directives within. htaccess document:

It is very important to have enabled in your cpanel the option to view hidden files.
[Image: how-to-fix-406-or-not-acceptable-error-u...anel-4.png]

The next code you need to enter in your .htaccess is:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R,L]

I hope you guys can use it.

Forum Jump:

Users browsing this thread:
1 Guest(s)