I have one .htaccess file in the public_html folder of my server, which allows me to save my main domain in a subfolder:
RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?mrmikeanderson.com$ RewriteCond %{REQUEST_URI} !^/mrmikeanderson/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /mrmikeanderson/$1 RewriteCond %{HTTP_HOST} ^(www.)?mrmikeanderson.com$ RewriteRule ^(/)?$ mrmikeanderson/index.php [L]
There is another .htaccess in this subfolder with a lot of rewriting to include URLs ending in things like /index.php?page=about in just / about:
RewriteEngine On RewriteRule ^$ index.php?page=home RewriteRule portfolio index.php?page=portfolio RewriteRule resume index.php?page=resume RewriteRule about index.php?page=about RewriteRule contact index.php?page=contact
The last four pages work, but my correspondence only for the domain name (\ ^ $) is broken. Everything works on my local MAMP server, but the first .htaccess file is missing there, so I think the two are conflicting. Can any web developer see what is going wrong?
source share