title: .htaccess to force SSL and also point to NodeJS
body: <p>I have a GoDaddy VPS managed server. I've installed Node/NPM, SSL certs, etc. successfully, but running into a couple issues with .htaccess. I can force http to https with the following code in .htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} !on
  RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  </code></pre>
  
  <p>I can also bypass having to do an Apache reverse proxy so that the server/domain is using NodeJS instead of Apache by adding the following to .htaccess:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule  (.*)  http://localhost:3000/$1  [P,L] 
  </code></pre>
  
  <p>The issue I'm having is getting both to work at the same time. Force SSL AND point to NodeJS for the server. </p>
  
  <p>I'm not sure if .htaccess is the best route to go for both goals. </p>