I have an .htaccess file in the root directory of all my sites which handles canonical rewrites. The entire content of the .htaccess file is as follows:
Options +Indexes
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.domain.com/$1/ [L,R=301]
The trouble is, when I install a Wordpress blog in a subdirectory (/blog) the WP blog becomes inoperable. I cannot log into the wp-admin area. My host tells me that this is because of the .htaccess file in the root. Therefore this needs to be deleted.
So how do I achieve the same canonical URL rewrite instructions if I can't have an .htaccess file in the root? Can I have these instructions in a robots.txt file in the root? Or is there another way of doing this?