title: Exclude folder from redirects and serve it as landing page (htaccess)
body: <p>I'll try to explain myself as clearly as possible.</p>
  <p>I have a webpack/vanillaJS website hosted on the root of this host. Among the files, I have a lonely &quot;landing-page&quot; folder. The struct is basically :</p>
  <pre><code>root/
  ├── index.php
  ├── .htaccess
  ├── other.build.files
  ├── landing-page/
  │   ├── index.php
  │   ├── other.build.files
  └──
  </code></pre>
  <p>In the .htaccess files of the root, I have a setup to redirect all the requests to root/index.php preserving URL params in order to manage to the route. This is the content of my .htaccess:</p>
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  </code></pre>
  <p><strong>THE PROBLEM:</strong>
  In this state when I try to load the path /landing-page/ it loads a blank page and in console {{index.js:1 Uncaught SyntaxError: Unexpected token '&lt;'}} as soon as the HTML starts. The error starts as soon as the  declaration at index.js:1, and as I click on the reference shows me the index.js of the root.
  So instead of serving folder level build file, I guess it takes from the root.</p>
  <p><strong>MY QUESTION IS:</strong></p>
  <p>How can I keep my redirect logic at the root level while serving my static landing page from the subfolder?</p>
  <p>The static landing page is a Svelte 3 static build, wrapped in an index.php with an <code>&lt;?PHP include_once?&gt;</code> that gets the index.html renamed to home.html.</p>
  <p>This is my first question as a front-end dev after the ages of just looking at StackOverflow. Feel free to guide me incorrectly formulate questions if you feel like it.</p>