I am getting an problem having a rewrite.

I've got a Wordpress install during my /blog directory, however i want the Wordpress Pages to look outdoors from the blog directory.

So, during my root .htaccess I added a line: (The very first three lines were already there for redirecting everything to "www"

RewriteEngine on
RewriteCond %{HTTP_HOST} ^tooboss.com$
RewriteRule ^(.*)$ "http\:\/\/www\.tooboss\.com/$1" [R=301,L]

RewriteRule ^(.*)$ "/blog/$1" [L]

Then i transformed the display URL within Wordpress to my root URL, and changed the permalink structure to prepend "/blog/" therefore it made an appearance my posts remained as within the blog directory.

Everything works fine, however i can't get www.tooboss.com/blog to redirect to www.tooboss.com. Rather, it throws a 404.

Any ideas?

For reference, here's your blog directory's .htaccess file"

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

# END WordPress

Shall We Be Held missing something apparent? I seem like it's getting caught between your 2 htaccess files but I am unsure how you can repair it.

Thanks

Wouldn't this rule:

RewriteRule ^(.*)$ "/blog/$1" [L]

cause www.tooboss.com/blog to obtain delivered to www.tooboss.com/blog/blog?

I believe you would like:

RewriteCond %{REQUEST_FILENAME} !^/blog/$
RewriteRule ^(.*)$ "/blog/$1" [L]

I am type of a new comer to .htaccess myself and so i may be off base here.

In reaction for your comment to seth's answer, do this:

RewriteRule ^/blog/?$ / [R=301,L]
RewriteRule ^(.*)$ /blog/$1 [L]

I figured it out Very annoying problem. I could solve the problem without moving my blog to another named directory, however it needed changing the Wordpress PHP that we did not wish to accomplish. If Wordpress was created to handle static links within the Permalink structure I would not have required to slowly move the install