Home >Backend Development >PHP Tutorial >php配置伪静态后总是提示404错误!

php配置伪静态后总是提示404错误!

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 14:04:501712browse

我用的是wamp开发的,查了一些资料要配置的文件也都配置了,如:
#LoadModule rewrite_module modules/mod_rewrite
AllowOverride None 改成了All 

重启apache后提示404错误!

我在网站根目录下建立的.htaccess 规则:

RewriteEngine on
RewriteRule ^/index.html$ /index.php



如果我把这条规则放入到conf/httpd.conf文件下是可以正常访问的,不知道为什么写在htaccess下就找不到文件呢?


回复讨论(解决方案)

要放在



Statement:
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