linux+apach+mysql环境搭建除了可以访问首页其他页面全部报错404(centos)

WBOY
Release: 2016-06-23 13:53:01
Original
771 people have browsed it

在win下是完全可以的,而且在初期的时候linux的服务器也配置好静态url的一些东西,但是昨天把其他项目的东西放上去,除开首页其他页面全部报404,项目中用了url的重写,真心不明白怎么回事,求高手指点


回复讨论(解决方案)

求高手指点

404 就是页面找不到?,Apache 说找不到,那就是找不到
可能是真不存在,也可能是没有访问的权限
当然也可能是重写规则错了

404 就是页面找不到?,Apache 说找不到,那就是找不到
可能是真不存在,也可能是没有访问的权限
当然也可能是重写规则错了


应该是apach的问题,我已经修改了网上说的那两点:
1、
LoadModule rewrite_module modules/mod_rewrite.so
Copy after login
这里把#号去掉
2、
AllowOverride All
Copy after login
这个AllowOverride后面全部改成All
3、.htaccess文件已经写好

其实开始的时候是都是配置好的,突然一下又不行了

那你现在问题解决了吗?

那你现在问题解决了吗?

没有

没有还说的那么肯定?

没有还说的那么肯定?

搞定了,晕死是.htaccess的问题,本来有的,不知道为什么突然没了
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!