iugo
V2EX  ›  问与答

.htaccess 是作用在浏览器上吗?

  •  
  •   iugo · Apr 22, 2012 · 3991 views
    This topic created in 5144 days ago, the information mentioned may be changed or developed.
    使用 Firefox 访问 http://vows.cn/talk/ 与使用 Chrome 访问效果不一样.

    我在根目录用 .htaccess 设置了301跳转

    在二级目录 ./talk/ 用 设置了
    RewriteBase /talk/

    用 Firefox 访问 http://vows.cn/talk/ , 结果跳到了 http://www.vows.cn/talk/ .
    用 Chorme 访问 http://vows.cn/talk/ , 没有跳转, 访问 http://vows.cn/talk/ 的数据.

    .htaccess 是作用在浏览器上吗?
    3 replies    1970-01-01 08:00:00 +08:00
    HowardMei
        1
    HowardMei  
       Apr 22, 2012
    应该没关系,它只是Apache的规则,你清除chrome的cache,刷新试试看。
    iugo
        2
    iugo  
    OP
       Apr 22, 2012
    @HowardMei 我使用 Opera 和 IE9 试了, 和 Chrome 结果一样.

    会不会是 Firefox 比较特殊?
    HowardMei
        3
    HowardMei  
       Apr 22, 2012
    可能你的.htaccess没写对,我用firefox访问也没跳转呀。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1700 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 16:25 · PVG 00:25 · LAX 09:25 · JFK 12:25
    ♥ Do have faith in what you're doing.