This is the .htaccess RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/litw(.*) https://%{SERVER_NAME}/litw$1 [R,L] The permissions are -rwx---r-x