I have a site that serves up certain content based on the subdomain. So it is the same set of files, and maybe the header and some info in the site pages changes based on t
You can't use if/else because htaccess isn't a list of instructions. But, if you use a conditional block like
You could also put one .htaccess file one level above the files and use
so this would be the directory above the web root(s):
.htaccess
sitefiles
subdomain1 (symlink to sitefiles)
subdomain2 (symlink to sitefiles)
...