title: Different .htaccess rewrite rules for new directory
body: <p>My .htaccess currently has the following behaviour using the rewrite rules below:</p>
  <p><code>https://example.com/abcd?lol=true</code></p>
  <ul>
  <li>if file <code>/abcd.php</code> exists, open <code>https://example.com/abcd.php?lol=true</code></li>
  <li>if directory and file <code>/abcd/index.php</code> exist, open <code>https://example.com/abcd/index.php?lol=true</code></li>
  <li>else open <code>https://example.com/index.php?lol=true</code></li>
  </ul>
  <p>-&gt; in all three cases the address bar must still show <code>https://example.com/abcd?lol=true</code></p>
  <pre><code>RewriteEngine On
  
  RewriteCond %{HTTPS} !=on
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  
  RewriteEngine on
  RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L]
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)/$ /$1 [L,R=301]
  
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php [END]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ / [END]
  </code></pre>
  <p>Now to my question: I have a new directory <code>/blog/</code>, where the following must happen:</p>
  <p><code>https://example.com/blog/abcd?lol=true</code></p>
  <ul>
  <li>open <code>https://example.com/blog/index.php?lol=true</code></li>
  </ul>
  <p>-&gt; <strong>the address bar must still show <code>https://example.com/blog/abcd?lol=true</code></strong> so I can use php to read the <code>abcd</code> part, which could be an article name.</p>
  <p>How can I append my .htaccess code to achieve this?</p>