我有一个收藏夹文件,不会显示在我的网站。起初,我认为这可能是htaccess的错,但我不确定这是不是正确的方向。
我的htaccess设置为将URL发送到index.php进行解析:
#Pass to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(css|gif|jpe?g|png|txt|xml|js|pdf|html)$ /home/username/public_html/domain.com/index.php [NC,L]
#Hotlinking
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpe?g|bmp|png|ico|css|js|pdf)$ http://domain.com [R,NC]我有以下HTML:
<link rel="icon" href="http://domain.com/favicon.ico" />
<link rel="shortcut icon" href="http://domain.com/favicon.ico" />当我尝试直接访问favicon.ico文件时,图像根本不会加载。当我尝试在本地(从我的硬盘,使用chrome或firefox)打开图像文件时,它打开并显示良好。
发布于 2011-12-16 02:46:37
有关解决方案/解决方法,请参阅备注(上文)。
https://stackoverflow.com/questions/8478486
复制相似问题