Htaccess重写规则问题与chrome浏览器显示网页



网页在IE上显示正确。Chrome将无法正确显示或遵循链接。任何想法或建议将不胜感激。如果我删除htaccess文件,谷歌显示正确,链接工作。

Options +FollowSymLinks
Options -Indexes
RewriteEngine on
#services
RewriteRule ^index.html$                   index.php                          [L]
RewriteRule ^showthread_([^/]*).html$      index.php?method=showthread&id=$1  [L]
RewriteRule ^postcomment.html$             index.php                          [L]
RewriteRule ^maturecontent.html$           index.php?method=maturecontent     [L]
RewriteRule ^randomthread.html$            index.php?method=randomthread      [L]
RewriteRule ^readnotapproved.html$         index.php?method=readnotapproved   [L]
RewriteRule ^contacts.html$                index.php?method=contacts          [L]
RewriteRule ^about.html$                   index.php?method=aboutus           [L]

.htaccess文件位于服务器端:它们处理来自客户端的请求,并返回资源(如HTML或图像文件)给浏览器。

浏览器依次解释这些HTML代码和/或资源,并使用它的渲染引擎显示网页。

您说不同的浏览器在显示您的页面时存在差异。这是完全有可能的,但是原因不可能是一个。htaccess文件,因为所有浏览器,无论什么类型,在从服务器请求时总是给出相同的代码。

如果不同浏览器在站点上的外观存在差异,并且您认为原因是.htaccess文件,则可能意味着浏览器的缓存页面有问题。浏览器应该缓存(或本地保存)一些数据以节省时间,因为不必在每次访问页面时一次又一次地请求相同的数据。有时,这与不一致-所以你可以通过清除浏览器的缓存来解决这个问题。

如果这不是问题,继续检查你的布局和/或URL方案,但我向你保证这与。htaccess无关。

相关内容

最新更新