Here I am going to share one quick article about to use SSL in WordPress site.HTTPS is highly recommended when transaction is processed in your site so to secure transactions,SSL is require in site.Nowadays HTTPS is very important for any kind of site you have and if you see now from every 1 from 5 site is in wordpress.
To activate SSL on your WordPress blog is very simple and easy to setup also.If you have idea about WordPress directory structure, you can easily setup SSL in WordPress.
Let’s see how to activate SSL in WordPress
1. Open your wp-config.php file and paste the following line of code into it:
define('FORCE_SSL_ADMIN', true); define('FORCE_SSL_LOGIN', true);
Above code will secure WordPress logins and the entire wp-admin area or you can say entire admin panel will be secured after enabling this.
2. Next,Go to your WordPress General Settings which you can find out in the main menu of admin panel and change the WordPress Address (URL) and the Site Address (URL) from HTTP to HTTPS.
That’s it.you are done with steps to force WordPress to use SSL encryption.
Keep In Mind:
Sometimes first page for wordpress works fine but the permalinks are not working after the set up you have done for SSL explained above.so for that issue check your server apache configuration and verify that for the directory in which you have store your WordPress installation ,following settings enabled
< Directory var/www/ > FollowSymLinks AllowOverride All Directory >
If not, add above lines into your server virtual host and check permalink structure will work fine.