Wordpress http to https redirection
<p>I have a wordpress website with ssl implemented. The website is working properly at <a href="https://domain.com" rel="nofollow">https://domain.com</a>. I want to redirect all the traffic from <a href="http://domain.com" rel="nofollow">http://domain.com</a> to <a href="https://domain.com" rel="nofollow">https://domain.com</a>. I googled about this and changed my .htaccess to following:</p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
</code></pre>

<p>The redirection is not working. I have tried plugins like Easy HTTPS redirection, Wordpress HTTPS, etc but still it is not working. Can someone please help me out on this.
Also i would like to add that when I try to visit <a href="http://domain.com" rel="nofollow">http://domain.com</a>
it does not connect.
Thanks in advance.</p>