Wordpress htaccess in root overriding htaccess in subdomain. Subdomain app not working now Wordpress htaccess in root overriding htaccess in subdomain. Subdomain app not working now wordpress wordpress

Wordpress htaccess in root overriding htaccess in subdomain. Subdomain app not working now


WP is also the culprit (you have two problems).

I can fix the first .htaccess problem because WP is predictable. You want to put this before the BEGIN WordPress section:

RewriteRule ^subdir-name/.*$ - [PT]

That grabs any requests to your subdir and Passes it Through (PT) so that it is not hijacked by WordPress.

The problem in your second .htaccess is that it seems to be assuming it is still in the root directory. For this one, I can't be sure without seeing the layout of your app, but the / before index.php may well be wrong. Are you sure that the paths in the second file match the new layout of your files?


Um... should this work? For sub-directory "office" - cheers :-)

<IfModule mod_rewrite.c>RewriteEngine OnRewriteRule ^office/.*$ - [PT]# BEGIN WordPressRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]# END WordPress</IfModule>