【问题标题】:.htaccess file, IE not working Firefox, Safari & Chrome working.htaccess 文件,IE 不工作 Firefox、Safari 和 Chrome 工作
【发布时间】:2010-12-01 14:50:43
【问题描述】:

我在 Interspire Web Publisher 中建立了一个站点,它运行良好,似乎在 Firefox、Safari 和 Chrome 中运行,但是当我启动 Internet Explorer 7 和 8 时,只有主页运行,所有指向其他页面的链接都显示什么都没有。

您认为这可能与 .htaccess 文件有关吗?但为什么它会在某一时刻起作用,而在另一时刻不起作用呢?我用 3 个小页面测试了一个新网站(它的数据库驱动),它在 Internet Explorer 上运行良好......非常奇怪!

我的网站:http://www.artandepilepsy.com

【问题讨论】:

  • 我在 Firefox 上收到错误,然后刷新页面并获得正确的索引。我认为您还有其他事情发生,我认为它与 .htaccess 无关。
  • 肯定有问题。你能把你的 .htaccess 文件贴在这里吗?
  • 对我来说,您粘贴的链接不起作用:-s

标签: internet-explorer .htaccess


【解决方案1】:

也许您的浏览器 (Internet Explorer) 在您设置 .htaccess 文件之前正在缓存页面?尝试删除所有浏览器中的 Internet 缓存,然后重新启动浏览器。如果它仍然有效,那么你有一个奇怪的问题,如果没有,那么它是你的 .htaccess 文件。

【讨论】:

  • 刚刚访问网站,出现php错误。看起来其他东西也坏了......
【解决方案2】:

非常感谢大家花时间回复...如果 Safari、Firefox 和 Chrome 都很好(我猜它们都构建在同一个 Webkit 上(已更正),那到底会发生什么。IE 会是什么?做不同的事?在早期版本的 Interspire 中似乎还不错,但我不想回到那个状态,因为它没有反馈表!

我已经清除了 Interspire(我正在使用的 CMS 系统)和 Internet Explorer 中的缓存,但仍然没有任何乐趣。我什至在这里设置了一个新安装:http://www.artandepilepsy.com/version2/(忽略大标题文本)但我遇到了同样的问题。

这是我的 .htaccess 文件:

# Options:
# -MultiViews: Turns off multiviews so it doesn't interfer with our rewrite rules
# -Indexes: Stop directory listings
# +FollowSymlinks: Let out rewrite rules work

Options -MultiViews -Indexes +FollowSymlinks

# Disable any sending of a default character set
AddDefaultCharset OFF

# Disable etags -- less headers

RewriteEngine On
# RewriteBase /

<IfModule mod_security.c>
    # Turn off mod_security filtering.  
    SecFilterEngine Off

    # The below probably isn't needed, but better safe than sorry.
    SecFilterScanPOST Off
</IfModule>

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/x-javascript application/javascript text/css text/ html text/xml
</IfModule>


# PHP is in CGI Mode, so we need a different mod_rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

【讨论】:

  • 离题,但 Safari 和 Chrome 都使用 WebKit,而不是 Gecko。
猜你喜欢
  • 2013-03-09
  • 1970-01-01
  • 1970-01-01
  • 2013-01-27
  • 2017-07-21
  • 1970-01-01
  • 1970-01-01
  • 2023-03-05
  • 1970-01-01
相关资源
最近更新 更多