I have my dev site running in a sub-directory and I do have RewriteBase configured in the .htaccess to point to that sub-directory. However, links within site pages that go to things like "/some/thing.html" end up not working because they go to localhost/some/thing.html instead of localhost/backdrop/some/thing.html.

Is this the expected behavior? 

Comments

It's a very long time since I did development like that - most of my development is in Lando so I get a different base URL for each site.

Two thoughts come to mind:

  1. Have you set the base URL for the site in settings.php? That may help in defining the site root.
  2. Are you actually trying to link to an HTML page within your site root? It might be that you'll actually need a specific rule for that page within your .htaccess