简体   繁体   English

Favicon内部服务器错误

[英]favicon internal server error

I changed win for ios and now I can't open the admin of a website I've created. 我为iOS更改了win,现在无法打开我创建的网站的管理员。

The error is: 错误是:

Request URL: http://local.mysite/favicon.ico 要求网址: http://local.mysite/favicon.ico

Request Method:GET Status Code:500 请求方法:GET状态码:500

Internal Server Error 内部服务器错误

Remote Address:127.0.0.1:80 远程地址:127.0.0.1:80

I have tried looking at xampp/logs and no error is shown. 我尝试查看xampp / logs,但未显示任何错误。

I've tried adding: 我尝试添加:

<IfModule mod_alias.c>
  RedirectMatch 403 favicon.ico
</IfModule>

to the .htaccess file 到.htaccess文件

also added to the code: <link rel="icon" href="data:;base64,iVBORw0KGgo="> 还添加到了代码中: <link rel="icon" href="data:;base64,iVBORw0KGgo=">

but I'm going blind on this, don't know what else to do. 但我对此视而不见,不知道该怎么办。

this is my .htaccess file: 这是my .htaccess文件:

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

My guess is that previously since favicon.ico existed, you didn't notice this. 我的猜测是,自从favicon.ico存在以来,您就没有注意到这一点。 When you removed it, the "file doesn't exist, so go to index.php" started the behavior. 删除它后,“文件不存在,因此请转到index.php”启动了行为。 Try putting this in the top of your index.php: 尝试将其放在index.php的顶部:

if ($_SERVER['REQUEST_URI']=='/favicon.ico') exit('');

or beef it up by sending something with the appropriate headers or even output that png (with the appropriate header for png). 或通过发送带有适当标题的东西甚至输出该png(为png提供适当的标题)来增强它。

OR 要么

how about just putting a favicon back, it can be that same png, but then you're not battling this issue any more. 只是放一个favicon怎么样,可以是相同的png,但是那样您就不再与这个问题作斗争了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM