TP5部署服务器只能打开首页其他页面全是404
问题描述
nginx.conf
server { listen80; server_name cy.280878.com; root/home/www/cy.280878.com; indexindex.php index1.php index.htm index.html; #location / { #if ( -f $request_filename) { # break; #} # if ( !-e $request_filename) { # rewrite ^(.*)$ /index.php/$1 last; # break; # } # }location ~ .+.php($|/) { #fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_pass 127.0.0.1:9000; fastcgi_split_path_info ^((?U).+.php)(/?.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include/etc/nginx/fastcgi_params;} }
.htaccess
<IfModule mod_rewrite.c>Options +FollowSymlinks -MultiviewsRewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]</IfModule>
首页:http://cy.280878.com/newswork/
404页面:http://cy.280878.com/newswork/details/index.html?id=4
问题解答
回答1:是不是图片路径传的不对
相关文章:
1. html5 - 百度echart官网下载的地图json数据乱码2. javascript - dropload+tab页面,图文页滚动有两个滚动区域怎么破?3. javascript - 怎么获取一个页面中的所数据,然后弄成一个json格式的字符串传给后台4. 双击安装程序,安装不了5. 谷歌访问助手安装不了6. javascript - JS中如何实现 DIV内部和鼠标的距离7. python - 如何用pandas处理分钟数据变成小时线?8. pdo - mysql 简单注入疑问9. 文本处理 - 求教使用python库提取pdf的方法?10. Python中使用超长的List导致内存占用过大
