.htaccess設(shè)置以下:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.aoyou0898.com$
RewriteCond %{REQUEST_URI} !^/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /$1
RewriteCond %{HTTP_HOST} ^www.aoyou0898.com$
RewriteRule ^(/)?$ /index.php [L]
#主站的偽靜態(tài)寫在以下
#主站的偽靜態(tài)寫在以上
RewriteCond %{HTTP_HOST} ^<span style="font-family: Arial, Helvetica, sans-serif;">qxc</span><span style="font-family: Arial, Helvetica, sans-serif;">.aoyou0898.com$</span>
RewriteCond %{REQUEST_URI} !^/qxc/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /qxc/$1
RewriteCond %{HTTP_HOST} ^<span style="font-family: Arial, Helvetica, sans-serif;">qxc</span>.aoyou0898.com$
RewriteRule ^(/)?$ <span style="font-family: Arial, Helvetica, sans-serif;">qxc</span>/index.php [L] (責(zé)任編輯:haoxuee)
學(xué)友請(qǐng)微信搜索好學(xué)網(wǎng),或加公眾號(hào) haoxueecom 獲取更多學(xué)習(xí)資訊!
|