http://自己的域名/.well-known/pki-validation/fileauth.txt,可以看到txt文件内容,但是https://自己的域名/.well-known/pki-validation/fileauth.txt就失败显示404
Not Found
The requested URL /.well-known/pki-validation/fileauth.txt was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use
我使用htaccess文件拒绝对任何页面的所有请求,并且只允许从一些域名列表中访问。但我希望将所有被拒绝的域名重定向到另一个本地页面。
我在我的htaccess文件中写了这个:
# intercept request
RewriteEngine On
<Files "mypage.php">
Order deny,allow
Deny from all
#Allow from 197.149.16.181
Allow from .*domain1\.com.*
Allow from .*domain2\.com.*
</
我有一个非常简单的htaccess文件来重写页面的URL。
例如,我有
RewriteRule ^frequently-asked-questions faq.php [L]
我遇到的问题是,当我导航到domain.com/frequently-asked-questions时,它会显示一个404,如下所示:
The requested URL /domain.com/frequently-asked-questions was not found on this server.
导航到domain.com/faq.php works。
重点是,它似乎在404错误中添加了域名,并且它没有意识到
因此,我在一台服务器上有两个域名,两个不同的站点,我在一个域名上进行了mod重写,我只想为一个域名工作,但是当我上传.htaccess文件时,1域名工作得很好,但是另一个站点/域名显示Not Found The requested URL was not found on this server. Additionally, a 404 Not Found _error_ was encountered while trying to use an ErrorDocument to handle the request.。
如果我删除mod重写文件,第二个站点工作并显示,但是第一个站点需要mo