Lent’s Encrypt https ssl domain

BHMA 1
Settings > General

WordPress Address URL
και
Site Address URL
από http σε https

BHMA 2
.wp-config

/**
 * Force all logins and all admin sessions to happen over SSL
 */
define('FORCE_SSL_ADMIN', true);

BHMA 3
.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    RewriteBase /
    # BEGIN WordPress
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress
    ## EXPIRES CACHING ##
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType application/javascript "access 1 month"
    ExpiresByType application/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
    ## EXPIRES CACHING ##
</IfModule>

BHMA 4
database

Κάνω export τη βάση και κάνω αντικατάσταση στο αρχείο όλα τα links 
από http://site.gr σε https://site.gr
και upload τη νέα βάση

Leave a Reply

Your email address will not be published. Required fields are marked *