gpt4 book ai didi

php - CodeIgniter 网站上字体上的 Firefox 403

转载 作者:行者123 更新时间:2023-12-02 05:37:17 25 4
gpt4 key购买 nike

我在 CSS 中使用 font-face 将自定义字体导入我使用 CodeIgniter 构建的 Web 应用程序。这是 CSS 代码:

@font-face {
font-family: 'UniversLT-UltraCondensed';
src: url('../Fonts/LTUnivers/universlt59ultracondensed.eot');
src: url('../Fonts/LTUnivers/universlt59ultracondensed.eot?#iefix') format('embedded-opentype'),
url('../Fonts/LTUnivers/universlt59ultracondensed.woff') format('woff'),
url('../Fonts/LTUnivers/universlt59ultracondensed.ttf') format('truetype'),
url('../Fonts/LTUnivers/universlt59ultracondensed.svg#universlt59ultracondensed') format('svg');
font-weight: normal;
font-style: normal;
}

body{
font-family: UniversLT-UltraCondensed, Helvetica, Arial, serif;
}

当我在 Safari、Chrome 或 Opera 中运行网站时,字体会正确加载。当我在 FireFox 中运行它时,我得到以下信息:

403

403 错误提示我服务器配置错误或 .htaccess 文件不知何故错误。说到那些东西,我是个新手,但这是我的 .htaccess 中的内容(假设这是问题所在...):

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Tat
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ Tat/index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt|css|fonts|woff|ttf|svg|eot)
RewriteRule ^(.*)$ Tat/index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 /Tat/index.php
</IfModule>

还应注意,这些文件具有 777 权限(我可以通过 SSH 访问运行 Ubuntu Lucid 的服务器)。

有什么建议吗?我不知道...

最佳答案

嗯,发现问题了。我已经为此工作了几个小时,一发布我就修复了它,这很典型!

无论如何,对于可能有类似问题的任何其他人 - 问题是我在 Linux 中的开发虚拟服务器上设置了权限,但没有在 Mac OSX 上设置由 VM 安装的文件夹的权限。所以我打开终端和 chmod -R 777'd 字体文件夹,它似乎工作。

关于php - CodeIgniter 网站上字体上的 Firefox 403,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11490657/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com