title: .htaccess remove index.php remove www. force https
body: <p>I understand this is not necessarily an EE specific question, but it involves the classic EE removal of index.php from the URL as well as a couple more specific rewrites. It’s also a lazy question, as I’ve tried a few rewrite rule combinations and there are errors… so, what I’m after is (please).</p>
  
  <ul>
  <li>Remove www.</li>
  <li>Force https://</li>
  <li>Remove index.php</li>
  </ul>
  
  <p>The important note, is that on an (mt) Media Temple server when testing on subdomains such as dev.domain.com the good old <em>multiple redirects</em> problem is kicking in. Ideally there’s a way for one .htaccess file to rule them all. Many thanks in advance.</p>