Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Changing my-url to my_url

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 2275 Views
  • ckim
    Avatar
    Community Member
    18 Posts

    Changing my-url to my_url Link to this post

    Can you point to the code where I can change - to underscore? I believe it is Google friendly.

    Am I wrong? any opinion or knowledge

    Peace out!

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Changing my-url to my_url Link to this post

    Hyphens are better than underscores, and we intentionally used hyphens instead. The main reason is readability. If I have a link like my_home_page and then style it on my site (or another website) such that links are underlined, then I can no longer tell if it is spaces or underlines in the word.

    From my experience, hyphens provide very good SEO; you can tell that with our own silverstripe.com in terms of how effective we rank for "open source cms", etc. Secondly, using the actual <title> element reinforces your name is very good for SEO.

    Check out Jill Whalen at http://www.highrankings.com/ for more of this sort of info

  • ckim
    Avatar
    Community Member
    18 Posts

    Re: Changing my-url to my_url Link to this post

    Great. I will read up and thanks

  • DesignCity
    Avatar
    38 Posts

    Re: Changing my-url to my_url Link to this post

    Hyphens are better than underscores - shearch engines in general see "open_source_cms" as one word, where as they distinguish the distinct words in "open-source-cms" becuase hyphens are used.

    Personally, i tend to use underscores as a force of habit when naming files and images (and ids, classes, function names etc etc), but I really need to get into the habit of using hyphens becuase technically it's a better method.

    2275 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.