.htaccess File not working properly for static/wordpress site
<p>I have had a heck of a time trying to make a very simple website carry a wordpress as a sub directory so we can use it only as a blog. 
To make this simple and quick, I will break this down into three parts. </p>

<p>What you need to know: All pages are in the root.</p>

<ul>
<li><p>I have the following .htaccess rules implemented to chop off all .php in the url so the url is cleaner, in the first example A) below. This is not an issue.</p></li>
<li><p>However the second example B) is my attempt to ignore /blog. This is so not to effect blog's contents/files etc.. when I pop off the .php, and allow it to operate on its own since its wordpress and has its own frame work. This is not working. What am I doing wrong, how would you correct this?</p></li>
<li><p>Lastly, once corrected I want anything beind serverver from blog to chop off the blog part in the url and have the site read <a href="http://website.com/whatever" rel="nofollow">http://website.com/whatever</a>, not <a href="http://website.com/blog/wwhatever" rel="nofollow">http://website.com/blog/wwhatever</a>, how can I work that in?</p></li>
</ul>

<p>Please help, I have been at this for days and Im so lost!</p>

<p><strong>Example A)</strong> take off the .php:</p>



<pre class="lang-bash prettyprint-override"><code>RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.(?:css|js|jpe?g|gif|png)$ [NC]
RewriteRule ^([^\.]+)$ $1.php [NC,L]
# rewrite css, js and images, from root
RewriteRule ^abc/[^/]+/[^/]+/(.+)$ $1  [L]
</code></pre>

<p><strong>Example B)</strong> Avoid /blog in order to not disturb wordpress, and in return it cannot override our files root files:</p>

<pre class="lang-bash prettyprint-override"><code>RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.(?:css|js|jpe?g|gif|png)$ [NC]
RewriteRule ![/blog]$ ^([^\.]+)$ $1.php [NC,L]
# rewrite css, js and images, from root
RewriteRule ^abc/[^/]+/[^/]+/(.+)$ $1  [L]
</code></pre>

<p>Also, The sub directory has a .htaccess it is: </p>

<pre class="lang-bash prettyprint-override"><code># BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;

# END WordPress
# BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;

# END WordPress
</code></pre>