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. jupyter-notebook - Mac下启动jupyter notebook后没有Python的选项?2. 百度地图api - Android 百度地图点击线路图的问题?3. javascript - 求一款靠谱点的移动端图片查看器插件,老司机速进!4. 这是什么情况???5. 数据库创建失败6. android自带时钟应用的这个效果是怎么做的7. css3的transform问题8. mysql sql where id in(25,12,87) 结果集如何用按照 25 12 87排序?9. javascript - 如何在外部点击,跳转到网页后,显示指定的模块。10. javascript - 在top.jsp点击退出按钮后,right.jsp进行页面跳转,跳转到login.jsp

网公网安备