微信玩快三猜大小_TP5项目部署nginx服务器路由重定向求助

浏览:223 发布日期:2019/09/17 分类:求助交流 关键字: nginx,tp5,重定向
nginx.conf
erver
{
listen 80;
server_name cy.280878.com;
root /home/www/cy.280878.com;
index index.php index1.php index.htm index.html;

location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
location ~ .*\.php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param script_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}

.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/?$1 [QSA,PT,L]
</IfModule>

conf
// 兼容PATH_INFO获取
'pathinfo_fetch' => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],

百度各种资料有的说是不支持path_info,有的说服务器配置可是我的都做了配置还是不行,只能显示首页,其他打开都是file not found...
最佳答案
评论( 相关
后面还有条评论,点击查看>>