Jump to content
WebFlake

Wordpress SSL


pannic12

Recommended Posts

  • 3 weeks later...
  • 2 weeks later...
  • 4 weeks later...

A most rustic but efective way, in case you have access to your .htaccess file, is to use the mod_rewrite within your apache installation. Simply put the following:

<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

Most shared hosting companies have already automatised the SSL certificates implementation with the Let's Encrypt solution, so you just need to point the users to the https 'version' of your website.

As people told you here in this very same post, also change your main URL in the WP control panel adding https to the main address.

Link to comment
Share on other sites

  • 2 months later...
On 7/25/2018 at 11:29 AM, lilobzh said:

Add a certificat with lets encrypt for example et changer URL in admin . HTTP to HTTPS

3

The answer @lilobzh provided earlier is largely correct. To help you achieve these steps, here are some helpful tools I'm personally using as well:

  1. For the SSL certificate via Let's Encrypt: https://wordpress.org/plugins/ose-lets-encrypt/
  2. To enable and force HTTPS for all your URL's: https://wordpress.org/plugins/https-redirection/

Someone will certainly comment that this can be achieved in other ways without resorting to the use of plugins. But in the case of this question, I believe the simpler solution would be to just use these pre-existing plugins. That should be enough for OP to get started.

Edited by Stijn
Clickable links for plugins
Link to comment
Share on other sites

11 hours ago, Stijn said:

The answer @lilobzh provided earlier is largely correct. To help you achieve these steps, here are some helpful tools I'm personally using as well:

  1. For the SSL certificate via Let's Encrypt: https://wordpress.org/plugins/ose-lets-encrypt/
  2. To enable and force HTTPS for all your URL's: https://wordpress.org/plugins/https-redirection/

Someone will certainly comment that this can be achieved in other ways without resorting to the use of plugins. But in the case of this question, I believe the simpler solution would be to just use these pre-existing plugins. That should be enough for OP to get started.

Yes, this is best solution. I'm using it. ?

Link to comment
Share on other sites

  • 4 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...