.htaccess Apache Rewrite HTTP to HTTPS If you have a SSL certificate and want to force use of HTTPS on your Apache server, you can use mod_rewrite to do this by adding code to your .htaccess file. Post updated: January 22, 2014 From the Apache Wiki: Note: Using mod_