Home > Backend Development > PHP Tutorial > ngnix rewrite打开页面出现404

ngnix rewrite打开页面出现404

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:12:58
Original
1287 people have browsed it

修改nginx的rewrite时,网站的首页访问正常,但是其他页面都是404.
查看了nginx日志,发现下面的错误,nginx出现了两次index.php,打开文件时多了一个Index.php,不知什么原因,nginx初学者,希望前辈帮忙看一下是什么原因?还有nginx的.htaccess和apache有什么区别呢?
下面是一些错误信息:
ngnix rewrite打开页面出现404

ngnix rewrite打开页面出现404

ngnix rewrite打开页面出现404

回复内容:

修改nginx的rewrite时,网站的首页访问正常,但是其他页面都是404.
查看了nginx日志,发现下面的错误,nginx出现了两次index.php,打开文件时多了一个Index.php,不知什么原因,nginx初学者,希望前辈帮忙看一下是什么原因?还有nginx的.htaccess和apache有什么区别呢?
下面是一些错误信息:
ngnix rewrite打开页面出现404

ngnix rewrite打开页面出现404

ngnix rewrite打开页面出现404

因为你本身的请求路径中包含 index.php url正则rewrite之后包含了路径中的index.php 所以出现了两次

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template