Force Secure connection to your site

Google and several search engines now want secure connections to your sites blog, in order to force SSL connections, edit your .htaccess to look like the following

# BEGIN WordPress
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
# END WordPress

The highlighted lines above are what is added to the standard wordpress .htaccess file to make all visitors to your site use https

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Keep Wordpress and all Scripts Updated

Please make sure to keep your wordpress installs updated or you will get hacked!!!!You can set...

Can Not Connect to Database Error's

If you are getting can not connect to the database error's when you goto your wordpress site  do...

Force SSL in Wordpreess

In order for your wordpress site to load securely in your vistors browser you must do the...