SSL certificate and HTTPS for WordPress
After procedure both logins and general WordPress website access will be redirected to the secures SSL version.
To set up SSL on a WordPress install follow these steps
- edit your wp-config.php file and add the following code before the line // ** MySQL settings
// **force both logins and dmin area to use SSL **//
define(‘FORCE_SSL_ADMIN’, true); - edit the .htaccess file add at the very top (edit the website url to yours)
<IfModule mod_rewrite.c>
RewriteEngine OnRewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.https://evopixel.com/$1 [R,L] </IfModule>
So after the above 2 simple steps all non-secured http site pages will be redirected automatically to your secure site pages using https