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

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

$
0
0

OK.
one of my WordPress sites was better suited to not being a wordpress site so i made it a “normal” htm website.
Initially it was not redirecting the index.htm to .co.uk inmstead i could access .co.uk/index.htm too but this solved that

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^mysite\.co\.uk$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule ^index\.htm$ / [R,L]

I now would like to make the whole site SSL over https so wanted to redirect everything from http to https and still have code above doing its job on SSL server.

Hope that makes some sense?


Viewing all articles
Browse latest Browse all 12461

Trending Articles