.htaccess Can';t通过mydomain.com/directory访问网页
我想Cloudflare有问题。我刚刚设置了Cloudflare,现在我无法通过.htaccess Can';t通过mydomain.com/directory访问网页,.htaccess,http-status-code-404,cloudflare,.htaccess,Http Status Code 404,Cloudflare,我想Cloudflare有问题。我刚刚设置了Cloudflare,现在我无法通过http://www.mydomain.fake/forumas但可以通过http://www.mydomain.fake/forumas/index.php 访问http://www.mydomain.fake/forumas我收到一个404错误。怎么办?您只需要在根目录的顶部有一个DirectoryIndex指令。htaccess: DirectoryIndex index.php 默认情况下,这将在任何目录中
http://www.mydomain.fake/forumas
但可以通过http://www.mydomain.fake/forumas/index.php
访问
http://www.mydomain.fake/forumas
我收到一个404错误。怎么办?您只需要在根目录的顶部有一个DirectoryIndex
指令。htaccess:
DirectoryIndex index.php
默认情况下,这将在任何目录中加载index.php