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.

SEO - Are spaces better filled with ( - ) or ( _ ) in the URLs?

September 20, 2007 10:58pm

Subscribe [3]
  • #1 / Sep 20, 2007 10:58pm

    koi

    36 posts

    I was curious if one was better than the other and whether we can opt for one over the other in the EE system.

  • #2 / Sep 20, 2007 11:01pm

    Lisa Wess

    20502 posts

    You can choose underscores or hyphens in Admin -> Weblog Administration -> Global Weblog Preferences.

    I’ll let someone with more SEO expertise answer that portion.

  • #3 / Sep 21, 2007 6:25am

    Mark Bowen

    12637 posts

    Hi Lisa,

    Just as a quick question. I was wondering how you would go about changing from already using underscores to then using dashes? Say you had entered 1000 entries on a dev server and then you wanted to move it to the real domain but the client insists that they want dashes instead, how would you update all the entries so that they now have dashes instead?

    I know that you can go into the EDIT screen for each entry and delete the auto created url title and when you save the entry it will get placed in for you but doing that for a large amount of entries could very quickly get tedious.

    If you want to tell me off for being a naughty boy and I should have decided beforehand on which to use (underscores or dashes) then please feel free to do so. I’m pretty sure that I would always ask this question first but just wanted to see if there is an easy way around this should the situation ever arise?

    Best wishes,

    Mark

  • #4 / Sep 21, 2007 6:42am

    allgood2

    427 posts

    You could probably do a find and replace on the url_title field, obviously back-up date, and possible create a test situation first, but I’d assume it would be pretty straight forward. O’ and I just checked, it would also require using SQL, since the Find & Replace will search on title, but not url_title. Go figure.

  • #5 / Sep 21, 2007 8:13am

    Mark Bowen

    12637 posts

    Hi there,

    I thought that if I needed to do this then MySQL would probably be the only way of doing it as EE doesn’t (as far as I can tell) have a built in way of handling this but just thought there might be some option lurking around in a corner somewhere that I had failed to notice?

    Oh well was just a thought anyway will probably never need to do this hopefully, especially for a massive amount like that anyway!!

    Best wishes,

    Mark

  • #6 / Sep 21, 2007 10:06am

    allgood2

    427 posts

    Yeah, when I originally started the post, I thought EE’s Find and Replace Utiltiy would work, before I noticed that url_title wasn’t one of the field options. Just title and custom fields.  But you could probably use the Query form to run the query.

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

ExpressionEngine News!

#eecms, #events, #releases