怎么隐藏nginx的index.php
我的网站在华夏名网上运行,最近用kohana框架改写,我用了好几个rewrite都没有成功去除index,php,我的程序目录是/site_1755我的rewrite规则...
我的网站在华夏名网上运行,最近用kohana框架改写,我用了好几个rewrite都没有成功去除index,php,我的程序目录是/site_1755
我的rewrite规则如下
location ~.php {
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_script_name;
}
location /site_1755 {
if (!-e $request_filename){
rewrite (.*) /site_1755/index.php/$1;
}
} 展开
我的rewrite规则如下
location ~.php {
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_script_name;
}
location /site_1755 {
if (!-e $request_filename){
rewrite (.*) /site_1755/index.php/$1;
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询