Here is a easy way to add HyperText Strict Transport Security Headers to Apache. Simply edit .htaccess and add the following line:

Header set Strict-Transport-Security "max-age=31536000" env=HTTPS