I have an ExpressionEngine site at http://example.com and a WordPress blog at http://example.com/blog (not my choice to be using both simultaneously, but I’m stick with it). The problem is, any WP pages that don’t map directly to an index.php end up being handled by ExpressionEngine, which results in a 404.
For example, http://example.com/blog and http://example.com/blog/wp-admin both work fine as they both directly use an index.php in those folders, but http://example.com/blog/category/tag/something gets handled by ExpressionEngine. So how can I modify the ExpressionEngine .htaccess file to tell it to ignore anything in the /blog directory? Or is there something else I should to here?
Here’s what’s currently in the ExpressionEngine .htaccess file:
Options +FollowSymLinks
RewriteEngine On
##### Remove index.php ######################################
RewriteCond %{REQUEST_URI} !^/blog
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
##### Add WWW ###############################################
RewriteCond %{REQUEST_URI} !^/blog
RewriteCond %{HTTP_HOST} ^getregionalcash.com [NC]
RewriteRule ^(.*)$ <a href="http://www.getregionalcash.com/$1">http://www.getregionalcash.com/$1</a> [R=301,NC]
##### Increase File Limit Size ##############################
#set max upload file size
php_value upload_max_filesize 20M
#set max post size
php_value post_max_size 20M
#set max time script can take
php_value max_execution_time 6000000
#set max time for input to be recieved
php_value max_input_time 6000000
#increase php memory limit
php_value memory_limit 64MAs you can see, I already made a couple attempts at ignoring /blog but it didn’t work. Any ideas?