Force https and www with htaccess

Place the following stanzas in an .htaccess file in the root web directory: Force www Automatically redirect from domain.com to www.domain.com RewriteCond %{HTTP_HOST} !^www\. RewriteRule (.*) http://www.%{SERVER_NAME}%{REQUEST_URI} [R=301] Force https Automatically redirect to a secure (https://) URL RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301] Notes Requires mod_rewrite Requires AllowOveride to be set to On

Ubuntu — Automatic Security Updates

In the Linux world, updates can come out quite often. When managing multiple servers, keeping them all up to date can be a hassle to say the least. This quick post will show you how you can automate the process of installing security updates on your Ubuntu server.

Adding an SSH Key to Amazon EC2

Using git to deploy code across multiple servers is a handy technique that works in pretty much any situation. That is, until you’re trying to deploy to an environment such as Amazon’s EC2 servers, which uses .pem files to login. In these situations, the simplest solution I’ve found is a rather ancient technique: SSH keys.


×Mike Everhart

Schedule a Free Consultation

I'd love to work with you! Fill out the form below to schedule a free consultation to discuss your needs and how I can help.

Free Consultation