How to tell .htaccess to ignore a subdirectory (or, how to run WordPress and ExpressionEngine simult
Posted
by Mike Crittenden
on Stack Overflow
See other posts from Stack Overflow
or by Mike Crittenden
Published on 2010-03-26T13:04:25Z
Indexed on
2010/03/26
13:13 UTC
Read the original article
Hit count: 704
I have an ExpressionEngine site at http://example.com and a WordPress blog at http://example.com/blog ...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?
Here's what's currently in the ExpressionEngine .htaccess file:
Options +FollowSymLinks
RewriteEngine On
##### Remove index.php ######################################
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
##### Add WWW ###############################################
RewriteCond %{HTTP_HOST} ^getregionalcash.com [NC]
RewriteRule ^(.*)$ http://www.getregionalcash.com/$1 [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 64M
Any ideas?
© Stack Overflow or respective owner