多目录安装typecho。静态文件怎么写

讨论程序使用中的问题
回复
baibaibai
帖子: 3
注册时间: 2018年 11月 28日 21:33

多目录安装typecho。静态文件怎么写

帖子 baibaibai »

用的bt搭建的网站。
在/boot/目录里面又创建了一个 typech 程序

当bc设置静态文件 为根目录的时候 根目录网站 正常

当bc设置静态文件 为 boot的时候 根目录打开文章404 后台404 ,但是boot 里面的网站正常

问。怎么写静态文件
求大神支招
baibaibai
帖子: 3
注册时间: 2018年 11月 28日 21:33

Re: 多目录安装typecho。静态文件怎么写

帖子 baibaibai »

求大神解答呀
头像
m4go
帖子: 857
注册时间: 2010年 3月 29日 02:33
来自: https://www.vpshu.com
联系:

Re: 多目录安装typecho。静态文件怎么写

帖子 m4go »

我也是宝塔,参考 http://demo.typecho.me/win95/http://demo.typecho.me/pi/ 类似2级目录,每个目录1个TYPECHO演示

location /pi/ {
if (!-e $request_filename) {
rewrite ^(.*)$ /pi/index.php$1 last;
}
}

location /win95/ {
if (!-e $request_filename) {
rewrite ^(.*)$ /win95/index.php$1 last;
}
}

location /anatole/ {
if (!-e $request_filename) {
rewrite ^(.*)$ /anatole/index.php$1 last;
}
}
baibaibai
帖子: 3
注册时间: 2018年 11月 28日 21:33

Re: 多目录安装typecho。静态文件怎么写

帖子 baibaibai »

m4go 写了:我也是宝塔,参考 http://demo.typecho.me/win95/http://demo.typecho.me/pi/ 类似2级目录,每个目录1个TYPECHO演示

location /pi/ {
if (!-e $request_filename) {
rewrite ^(.*)$ /pi/index.php$1 last;
}
}

location /win95/ {
if (!-e $request_filename) {
rewrite ^(.*)$ /win95/index.php$1 last;
}
}

location /anatole/ {
if (!-e $request_filename) {
rewrite ^(.*)$ /anatole/index.php$1 last;
}
}

.htaccess
这个我是应该直接放到BT的设置里面?还是怎么放,我复制放到 哪里?或者是什么文件。还是写一个.htaccess 放到根目录
回复