ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Dashes versus underscores in urls

March 01, 2011 10:00pm

Subscribe [14]
  • #16 / Mar 16, 2011 7:57pm

    narration

    773 posts

    A smile back, Susan.

    I’m having a kind of intriguing visual image just now, which starts with the way pull quotes are used in magazines. They intrude into the mainline text - can be from the right as seems natural.

    Maybe with a little floating div jiggery-pokery to let one ride with various browser sizing…and then the hard but interesting part, the purpose of which is to draw the eye. That’s for the rest of the information.

    What if the block of the pull quote or new info imitator had borders, which with a soft curve flowed into a standing border of the sidebar? Kind of an indented border….

    The image had the border be a bit intriguing too - sort of marquetry as the designs in a guitar sound port.

    I’ll have to think about how feasible, but it feels an interesting image. You may be faster with a reality.

    Best again,
    Clive

  • #17 / Mar 17, 2011 8:45am

    James Smith

    259 posts

    Interesting that they (Google) haven’t normalised this yet.

    I have a large site that’s still under development (no urls indexed yet) - It has thousands of entries already using underscores… If I were to replace them all with dashes via mysql, is it only the exp_weblog_titles > url_title column that I need to worry about… or are there more?

  • #18 / May 10, 2011 1:38pm

    Matt:P

    277 posts

    Same as @nevsie, underscores for channel_names, field_names and template_code and dashes for url-titles.

    A consideration / reason for us is when URLs are used in print or underlined in a link, we think they just look nicer and are easier to read when we use dashes.

  • #19 / May 10, 2011 5:52pm

    Bethany Creative

    16 posts

    Good point Roi. While it’s better for search engines I think dashes are easier to read the URL (novices might not see the underscore) and when you double-click the code it highlights the word in my editor (Coda). With underscores it doesn’t. I have no idea why EE defaults to underscores but that’s one of the first things I change.

    Where do you change EE’s default behavior for URLS?

    Jamie

  • #20 / May 10, 2011 5:57pm

    Matt:P

    277 posts

    @jzachary : Admin > Channel Administration > Global Preferences at the bottom is an option called: Word Separator for URL Titles 😉

    That will affect each entries ‘url title’ as it appears in the URL. The preceding URL segments are hand-made-with-dashes when you create templates and template-group names in Design > Templates > Template Manager

  • #21 / May 10, 2011 6:00pm

    Bethany Creative

    16 posts

    Sigh. I was literally staring right at it.

    Gracias.

  • #22 / May 10, 2011 6:00pm

    Matt:P

    277 posts

    HA, I know the feeling!

  • #23 / Jul 19, 2011 6:13pm

    vmills

    96 posts

    I prefer dashes all the way, but I’m just using ee 2.1.x for the first time and when I change the word separator to hyphen in global channel preferences, it still leaves the underscores as default for channel names, field names, etc. I can change each one to hyphens individually but given how forgetful I am, this ends up taking way more time than it needs to. Is there a setting I’ve missed somewhere that will change all the word separators to hyphens in 2.x?

  • #24 / Jul 20, 2011 12:58pm

    Boyink!

    5011 posts

    Is there a setting I’ve missed somewhere that will change all the word separators to hyphens in 2.x?

    No.

  • #25 / Jul 20, 2011 1:56pm

    vmills

    96 posts

    Guess that would be a feature request then. Thanks boyink.

  • #26 / Sep 07, 2011 2:03am

    zerovapor

    14 posts

    Just a update on this. Google views

    this_is_a_page


    as

    thisisapage

    and views

    this-is-a-page

    as

    this,is,a,page

    it just comes down to how google’s spiders were originally programed. Dashs are a better method to use but neither has a higher seo value.

    Also just as a user consideration This-looks-better -or- than_this(hover over the link ) its easier to read and the user may mistake _ for a empty space.

    a little more info directly from google
    http://www.youtube.com/watch?v=AQcSFsQyct8

  • #27 / Aug 08, 2013 3:00pm

    Jeremy-tP

    3 posts

    I have a corporate site that I’m newly administering that is currently utilizing underscores instead of dashes.  If I change the default to dashes will this only affect URLs moving forward or will it adjust all previous URLs in the database as well?

    I’m guessing it’s only moving forward but I just want to be sure.

    Thanks.

  • #28 / Aug 08, 2013 3:06pm

    Roi Agneta

    352 posts

    Going forward only. Older ones can be changed manually by editing the URL title field in an entry.

  • #29 / Aug 08, 2013 3:09pm

    Jeremy-tP

    3 posts

    Going forward only. Older ones can be changed manually by editing the URL title field in an entry.

    Thanks for the quick response, Roi!  😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases