虫言虫语 虫言虫语

typecho为子目录绑定域名

in 默认分类read (118551) 文章转载请注明来源!

放在根目录下的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:本地测试的时候一定要记得把开发者工具里的禁用缓存勾上!!!!!!!

jrotty WeChat Pay

微信打赏

jrotty Alipay

支付宝打赏

文章二维码

扫描二维码,在手机上阅读!

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /data/htdocs/worm.host.smartgslb.com/build/var/Typecho/Db/Adapter/Pdo.php on line 119 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /data/sys/hostker_start_7.php on line 64