typecho为子目录绑定域名
放在根目录下的htaccess文件
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.)?acg.cx$
#把root改为要绑定的目录.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/build/
RewriteRule ^(.*)$ build/$1 [L,QSA]
</IfModule>
放在目标文件夹下的htaccess文件
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /build/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
PS:本地测试的时候一定要记得把开发者工具里的禁用缓存勾上!!!!!!!