Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12486

Reply To: WordPress SSL htaccess code – Rewrite SSL, RewriteCond %{SERVER_PORT}

$
0
0

Hi,

Just to clarify the above (as I’m a newbie to SSL sites) – if i have a new w/p install with a SSl cert (and BPS pro installed) should I add the code you’ve mentioned here earlier into my .htaccess file or is it not needed?:

# WP REWRITE LOOP START
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_PORT} ^80
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule ^index\.php$ - [L]

I’ve also found a suggested edit for the wp-config.php is this necessary too?:

Edit your wp-config.php file and add

define('FORCE_SSL_ADMIN', true);

Cheers.

  • This reply was modified 10 hours, 52 minutes ago by  AITpro Admin.

Viewing all articles
Browse latest Browse all 12486

Trending Articles