I've looked around and have attempted some rules and conditions that worked; while some did not work or the condition would capture too much causing other domains to also redirect. This works for me:
# Redirect (also catches www.)
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ subfolder [L]
resulting in if you visit www.domain.com OR domain.com being redirected to domain.com/subfolder Great, but I'dd also like the /subfolder part to be hidden from the url.
How do I achieve this?
Note that I have multiple domains, each should redirect to its own folder. I also want each page to still be visible in its respective folder.
So www.domain.com/abc should redirect to domain.com/subfolder/abc but show domain.com/abc