只好各自使用各自的重写规则了。
# NEEDED BEGIN
Options -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.)?
techllage.com$
RewriteCond %{REQUEST_URI} !^/techllage/
RewriteRule ^(.*)$ techllage/$1
# NEEDED END
# GZIP BEGIN
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/css application/x-javascript
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 2 months"
</IfModule>
# GZIP END
#BLOG BEGIN
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.)?
xiaolvmu.techllage.com$
RewriteCond %{REQUEST_URI} !^/xiaolvmu/
RewriteRule ^(.*)$ /xiaolvmu/$1
RewriteCond %{HTTP_HOST} ^(www.)?
xiaolvmu.techllage.com$
RewriteRule ^(/)?$ xiaolvmu/index.php [L]
#BLOG END
</Directory>
<Directory "/var/www/html/techllage">
# BEGIN Techllage Sub
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /techllage
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /techllage/index.php [L]
RewriteCond %{HTTPS} !^on$ [NC]
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
FileETag none
</IfModule>
# END Techllage Sub
# ADD Techllage Sub
# RULE BEGIN
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#RULE END
# END ADD
因为根目录下面的htaccess同样适用于二级目录,因此似乎只有这样了