Lewis Hill - Web Enthusiast, Design Junkie, Terrible Magician.

Redirect HTTP to HTTPS

Recently I needed to secure a project I’ve been working on for a Packaging Equipment company. To do this, it was necessary for me to change the site from http protocol, to https.

Buying the secure certificate and the hosting for the domain is easy enough, but when it’s all in place, I essentially have 2 websites on my hands.

 Apache configuration |  copy code |? 


 Apache configuration |  copy code |? 

I personally had no use for the non-secure connection, so I needed to find a way to redirect http to https.

After about an hour of failed attempts with StackExchange, I asked on my favourite web design forum, and my prayers were answered by DigitalSquid, who provided the following code to place in a .htaccess file.

 Apache configuration |  copy code |? 
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

That’s all there was to it.

I'm into comics, I thought it a shame that they get delivered, read once and hidden away in a box. I built a database to track and view them. My Comic Collection.

I collaborated with Michael Dean on an idea I had to play Rock, Paper, Scissors over the internet. I handled the design. Go to Settlr.

I illustrated the Marvel Character Cyclops and it got picked up by the Executive Editorial Director for Marvel.com. I'm so proud :)

Custom built WordPress website for High Beech Primary School in Loughton.