用的bt搭建的网站。
在/boot/目录里面又创建了一个 typech 程序
当bc设置静态文件 为根目录的时候 根目录网站 正常
当bc设置静态文件 为 boot的时候 根目录打开文章404 后台404 ,但是boot 里面的网站正常
问。怎么写静态文件
求大神支招
多目录安装typecho。静态文件怎么写
- m4go
- 帖子: 857
- 注册时间: 2010年 3月 29日 02:33
- 来自: https://www.vpshu.com
- 联系:
Re: 多目录安装typecho。静态文件怎么写
我也是宝塔,参考 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;
}
}
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;
}
}
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;
}
}
.htaccess
这个我是应该直接放到BT的设置里面?还是怎么放,我复制放到 哪里?或者是什么文件。还是写一个.htaccess 放到根目录