We're working on a site that has Wordpress installed as the main CMS. EE is installed in subdirectory, and I am wanting to remove index.php. Everything I have tried removes both index.php and the subdirectory, but I need that subdirectory to stay in place, so WP will leave it alone.
So an address like: site.com/EE_subdirectory/index.php/site/page-url
Needs to change to: site.com/EE_subdirectory/site/page-url
I tried this .htaccess to my EE subdirectory:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
But it took out both the subdirectory and index.php. Do I need to do something to the WP .htaccess instead? Any ideas?