Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteRule ^(/)?$ henry [L]
do you see any problems with this set up?
RewriteCond %{HTTP_HOST} blahblah
attached to every single RewriteRule in the primary htaccess-- because this htaccess file simply won't contain any RewriteRules. You can use it for other stuff like Allow/Deny directives, where normally you'd want all sites to share the same rules. RewriteCond %{HTTP_HOST} ^(www.)?example.com$This is a far-from-optimal wording. Just say, without anchors,"example.com". (Rare exception if you've got domains with overlapping names, or possibly subdomains based in different but parallel directories.) Incidentally, you should escape \. all periods, though in this specific context it's a non-critical error.
RewriteRule ^(/)?$ henry [L]ALWAYS start the target of a RewriteRule with either a /slash (meaning "document root") or full protocol-plus-domain (when you're creating a redirect). Then you don't even need to think about a RewriteBase.