RewriteEngine On
RewriteBase /subdirectory1/
RewriteRule ^index.php/archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /subdirectory1/wp-feed.php?category_name=$1&feed=$2 [QSA]
RewriteRule ^index.php/archives/category/?(.*) /subdirectory1/index.php?category_name=$1 [QSA]
RewriteRule ^index.php/archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /subdirectory1/wp-feed.php?author_name=$1&feed=$2 [QSA]
RewriteRule ^index.php/archives/author/?(.*) /subdirectory1/index.php?author_name=$1 [QSA]
RewriteRule ^index.php/archives/?([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /subdirectory1/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
RewriteRule ^index.php/archives/?([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /subdirectory1/wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
RewriteRule ^index.php/archives/?([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /subdirectory1/wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /subdirectory1/wp-feed.php?feed=$1 [QSA]
RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /subdirectory1/wp-feed.php?feed=$1&withcomments=1 [QSA]
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} kb.domainhost.net
RewriteCond %{REQUEST_URI} !subdirectory2/
RewriteRule ^(.*)$ subdirectory2/$1 [L]