title: How can I include a subdomain in my htaccess that forces HTTPS?
body: <p>There is an htaccess file in the root directory of my domain.  I added a subdomain called dev so I can work on the application from there.  I think the htacccess file is preventing me from visiting the subdomain because it is rewriting the url to the main domain.  How can I add a rule that rewrites the url of the subdomain to HTTPS?  The main domain still works fine but I get Error 500 when I visit <code>dev.{site_name}.php</code> and <code>{site_name.ph}/dev</code> The url of the subdomain would be <code>https://www.{site_name}.ph</code></p>
  
  <pre><code>RewriteEngine On 
  RewriteCond %{HTTP_HOST} ^{site_name}\.ph [NC]
  RewriteCond %{SERVER_PORT} 80 
  RewriteRule ^(.*)$ https://www.{site_name}.ph/$1 [R,L]
  </code></pre>