darcy
V2EX  ›  问与答

URL 中是使用连字符(减号)还是下划线好呢?

  •  
  •   darcy · Aug 16, 2010 · 11675 views
    This topic created in 5925 days ago, the information mentioned may be changed or developed.
    连字符 http://example.com/hello-world
    下划线 http://example.com/hello_world

    大型网站都是混用,不过使用下划线的比例多一点。Google使用的连字符。似乎从SEO角度来说连字符要好些。
    6 replies  •  1970-01-01 08:00:00 +08:00
    dimlau
    dimlau
    Aug 16, 2010
    1
    我个人喜欢连字符,其实一些blog程序默认下划线的,比如movabletype……
    Livid
    Livid
    MOD
    PRO
    Aug 16, 2010
    2
    我在 Picky 用的是连字符。

    连字符从语义上来说也更有意义。
    moplay
    moplay
    Aug 16, 2010
    3
    SEO建议是使用连字符
    xinzhi
    xinzhi
    Aug 16, 2010
    4
    减号更容易输入啊。
    ong
    ong
    Aug 16, 2010❤️1
    5
    囧,昨天我就想讨论这问题来着。

    http://www.google.com/support/webmasters/bin/answer.py?hl=cn&answer=76329
    <blockquote>我们建议您在网址中使用连字符 (-) 而尽量避免使用下划线 (_)。</blockquote>
    darcy
    darcy
    OP
    Aug 18, 2010
    6
    嗯,页面URL使用连字符。
    而在不需要SEO的图片(如CSS中引用的图片)是用下划线作为文件名的分隔符。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1374 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:20 · PVG 02:20 · LAX 10:20 · JFK 13:20
    ♥ Do have faith in what you're doing.