Hey folks,

I have an issue with a rewrite on my site. I will start with the symptom and then dig into the intended goal, setup and history.

Okay...so, the goal of this is to support multiple websites on a shared hosting account. For example, I have abovethefolddesign.com and dev.abovethefolddesign.com. Each site is placed into it's own folder under the root and named respectively.

1. In the root of the hosting account, I have an .htaccess file with the following code:

Options +FollowSymlinks
RewriteEngine on

RewriteCond %{HTTP_HOST} ^(w{1,3}\.)?abovethefolddesign\.com$
RewriteCond $1 !^abovethefolddesign.com/
RewriteRule (.*) /abovethefolddesign.com/$1 [L]
If I remove this .htaccess, then I will get a directory listing of my account - not good.

In the /abovethefolddesign.com/blog folder, I have an .htaccess file with the following code:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
# END WordPress
If I remove this .htaccess, I will get a 404 for each blog post (but the main blog post page works fine.)

Couple other pieces of info: a) I am not an .htaccess wizard, b) Only the files of /blog are Wordpress, the rest of the site is custom.

Can someone help with streamlining this and making the site work as it should?