.htaccess Redirect non-www domains including subdirectoies to www and exclude subdomains
问题 I know there's tons of docs on any one of these items, but I can't seem to find the .htaccess code to do all of them together. Goal/requirements: No prefix domain.tld redirects to www.domain.tld Subdomain'd domain (ex. mail.domain.tld) still goes to mail.domain.tld, i.e. does not get redirected to www.domain.tld Domain.tld/subdirectory redirects to www.domain.tld/subdirectory. NOTE: domains will vary, but subdirectory will always be the same, i.e. all domains have the subdirectory. For