请把以下代码保存到.htaccess
#Rewriteengine on
#DirectoryIndex home.html index.html index.php index.cgi
# a网站设置项
#RewriteCond %{REQUEST_URI} !^/a/.*
#RewriteCond %{HTTP_HOST} =www.a.com
#RewriteRule ^(.*) /a/$1 [L]
# a网站二级域名设置项
#RewriteCond %{REQUEST_URI} !^/app/.*
#RewriteCond %{HTTP_HOST} =app.ssdir.cn
#RewriteRule ^(.*) /app/$1 [L]
#子目录绑定开始
RewriteEngine On
Options All -Indexes
php_value upload_max_filesize 20M
RewriteEngine on
RewriteCond %{HTTP_HOST} =app.ssdir.cn
RewriteCond %{REQUEST_URI} !^/app/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /app/$1
RewriteCond %{HTTP_HOST} =app.ssdir.cn
RewriteRule ^(/)?$ app/index.php [L]
#子目录绑定结束
#子目录绑定开始
RewriteEngine On
Options All -Indexes
php_value upload_max_filesize 20M
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?ssdir.cn$
RewriteCond %{REQUEST_URI} !^/lenfans/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /lenfans/$1
RewriteCond %{HTTP_HOST} ^(www.)?ssdir.cn$
RewriteRule ^(/)?$ ssdir/index.php [L]
#子目录绑定结束