I need to direct requests for mysite/index.htm to mysite.com Here is my current .htaccess AddType application/x-httpd-php .php .htm .html ErrorDocument 404 mysite.com/sitemap.htm RewriteEngine On RewriteCond %{HTTP_HOST} ^mysite.com RewriteRule (.*) http://www.mysite.com/$1 [R=301,L] Code (markup):
That only deals with your document root - what about mysite.com/dirname/index.htm? Also, what about mysite.com vs. www .mysite.com? I posted a more complete solution not too long ago - http://forums.digitalpoint.com/showthread.php?t=48460