I decided to move the child installation to the main site’s web root, and rename its subdirectory to intranet
. Once I had done this, all I had left to do was place this line of code after the main site’s rules:
RewriteRule ^intranet/ - [L]
The -
rewrites the URI to itself – thus overriding any previous rules. The request is then passed on to the child site as is.