title: htaccess help in coexisting Codeigniter and Wordpress install
body: <p>My intention here is to have a codeigniter app with a blog under the same domain. The admin for both should be separate.</p>
  
  <p>The directory structure is this:</p>
  
  <pre><code>httpdocs/.htaccess
  httpdocs/application/ &lt;== CI installation
  httpdocs/blog/        &lt;== WP installation
  httpdocs/blog/.htaccess
  </code></pre>
  
  <p>URLs would be like this:</p>
  
  <pre><code>mysite.com         &lt;== CI
  mysite.com/tools   &lt;== CI
  mysite.com/forum   &lt;== CI
  mysite.com/blog    &lt;== WP
  </code></pre>
  
  <p>I followed <a href="http://www.andyhawthorne.net/2011/07/using-codeigniter-and-wordpress-together/" rel="nofollow">this tutorial</a> to set up and it worked nicely. </p>
  
  <p>Both my codeigniter app and WP <strong><em>blog home page</em></strong> show exactly as they should, with correct URLs, styles etc.</p>
  
  <p>I can also access <strong><em>mysite.com/blog/wp-admin</em></strong> normally for WP back end stuff.</p>
  
  <p>My issue is when I try to access an actual blog post, for example:</p>
  
  <pre><code>mysite.com/blog/fiction/what-is-going-on/
  </code></pre>
  
  <p>When I do this, I get <strong><em>Codeigniter's 404 error page</em></strong>.</p>
  
  <p>My root .htaccess (httpdocs/.htaccess) is this:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  RewriteCond $1 !^(index\.php|robots\.txt|blog|assets)
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>My blog .htaccess (httpdocs/blog/.htaccess) is this:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  
  <p>Any idea what I'm doing wrong? Will post more info if requested. Thanks in advance.</p>