我刚刚配置了一个Apache服务器,并将我的站点文件上传到适当的目录中。当URL中包含页面(如IP/index.php )时,页面将正确加载,但当我只键入IP或域名时,会得到以下消息:
The requested URL /.php was not found on this我已经在DirectoryIndex index.php和httpd.
有人能解释一下这个mod_rewrite规则是干什么的吗?我试图对该文件进行注释,但代码似乎与我认为的相反RewriteEngine on
# Thing to test = URLRewriteCond $1 !is fulfilled
# Remove index.php from all URLs