SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What to do about spaces in my links ?

    My design includes dynamic (php) links

    eg: from the name "David Franklyn", I get the link

    <a href="www.mysite/David Franklyn/sports/Franklyn.html">David Franklyn</a>

    What would be the best way to deal with the spaces ?

    (PS I took the ".com" off so that this forum s/w didn't turn it into a link.)

    From a SEO point of view:

    Is it best to use rawurlencode() to convert
    the spaces to "%20" or to replace with an underscore
    or a dash or a period ?


    Thanks for any advice

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can't say im an expert on this kind of stuff, but when work on things like this, i generally turn spaces into dashes. Just a personal preference but i don't know whether or not it makes a big difference. I tend to steer away from %20 because it can confuse novice visitors who wanted to type in the url directly.

    My two cents.

  3. #3
    SitePoint Member
    Join Date
    Jan 2009
    Location
    England
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dashes would be best from an SEO perspective, followed by underscores. they probably equate to the same thing.

  4. #4
    SitePoint Member
    Join Date
    Jan 2009
    Location
    Southern California
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i generally turn spaces into dashes
    that's what I do as well, the other option would be just to delete the space (ie. DerekFranlin)
    Neurolinker Massive Automated Backlinks |
    IX Webhosting |
    NicheRockets

  5. #5
    SitePoint Enthusiast ReadingBuddy's Avatar
    Join Date
    Dec 2008
    Location
    Florida USA
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've seen recommendations on several forums that dashes will serve you better than underscores. They also require your user to type fewer keystrokes.
    We teach kids to read.
    Learn to read
    We also do psychology software.
    We also help couples plan fantastic beach weddings.

  6. #6
    SitePoint Zealot
    Join Date
    Jan 2009
    Location
    Suffolk
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i generally turn spaces into dashes
    I also use dashes but notice in Google adwords (presumably a Google site?) that they just take out the spaces.

  7. #7
    SitePoint Enthusiast
    Join Date
    May 2008
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dashes may help the search engines distinguish words better.

  8. #8
    SitePoint Member Pistolero's Avatar
    Join Date
    Feb 2009
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I prefer underscores. Also, since you have 39 posts you can put links in now =)
    freewarereview.weebly.com- free programs you need to know about


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •