I'm currently have this:
RewriteEngine On
RewriteBase /
RewriteRule ^(index\.php)?$ /test/ [L]
(index.php seems to be necessary, it's from here: How can I use .htaccess rewrite to redirect root URL to subdirectory?)
System: MacBook Pro - XAMPP 8.1.2 (installer not VM)
I’m trying to rewrite not redirect (not changing adressbar), everything to /test/
This is working:
Typing in:
localhost/
should show content of
localhost/test/
This is not working:
with all subdirectories localhost/test2/ -> localhost/test/test2/
…