SitePoint Sponsor

User Tag List

Results 1 to 13 of 13
  1. #1
    SitePoint Guru Rebirth Studios's Avatar
    Join Date
    Mar 2003
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Friendly Dynamic URL's

    Use search engine friendly URLs - Although search engines can crawl query strings just fine, using a URL that appears static is a good thing. Errors can occur on long or complex query strings and this eliminates that possibility plus it is a great chance to get keywords into your URL
    I'm working on a project where we will be dynamically posting results which could overlap, so we would have two entries which could be listed with the same for any given category. So given this fact, our programmers are saying we have to add a unique query string/stub in order to differentiate the entries.

    I do not handle the database, so there's nothing I can do in this regard, but I am wondering if there is a way to do this where two records would have the same name, yet be written so that they don't duplicate each other.

    so this...
    www.domain.com/category/

    has two of these...
    www.domain.com/category/specific
    www.domain.com/category/specific

    which have to be re-written in a way like this to avoid duplication...
    http://www.domain.com/category/speci...c0d6-4c89-87bc

    Is there a better way to do this?

  2. #2
    Error 404: Life not found silver trophybronze trophy
    Join Date
    Dec 2007
    Location
    UK Nr Manchester
    Posts
    3,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This was discussed fairly extensively by Stymiee and I in this thread - http://www.sitepoint.com/forums/showthread.php?t=517509
    It's 530 people, but do you really get it?
    ImgWebDesign - Web design in Buxton, High Peak, Derbyshire UK.

  3. #3
    SitePoint Guru Rebirth Studios's Avatar
    Join Date
    Mar 2003
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JJMcClure View Post
    This was discussed fairly extensively by Stymiee and I in this thread - http://www.sitepoint.com/forums/showthread.php?t=517509
    I don't think that addresses my issue because I'm not talking about duplicate content, I'm talking about duplicate URL's and my ability to rename them based on what we can pull from the database.

    So, let's say I have the data category stores and within that there are 4 records for Safeway. Each specific entry is titled the same, so the name of each re-written url would have to be:
    www.domain.com/city/safeway

    I have no way to change these, as our database is large and has many records similar where there are multiple exact entries per categoryŚmaking this problematic for me to devise a good re-write strategy.

    I could do...
    http://www.domain.com/page.asp?ofrgs...c0d6-4c89-87bc
    or
    http://www.domain.com/city/safeway?o...c0d6-4c89-87bc

    but I was wondering if there's a better to do this?

  4. #4
    Error 404: Life not found silver trophybronze trophy
    Join Date
    Dec 2007
    Location
    UK Nr Manchester
    Posts
    3,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How can you have more than one record with the same name? Why don't the originals get overwritten by the latest entry?
    It's 530 people, but do you really get it?
    ImgWebDesign - Web design in Buxton, High Peak, Derbyshire UK.

  5. #5
    SitePoint Guru Rebirth Studios's Avatar
    Join Date
    Mar 2003
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because they are separate instances, which are dictated by the customer.

  6. #6
    SitePoint Addict
    Join Date
    Sep 2007
    Posts
    371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just add unique record id in front of the title in the url, that way even if they have the same words, there will be no collision.

  7. #7
    SitePoint Guru Rebirth Studios's Avatar
    Join Date
    Mar 2003
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, and can someone remind me how Google and the others treat the url when it is dynamic. Do they read up to the question mark and throw the rest out, or do they read the whole thing...how does this work?

    http://www.domain.com/page.asp?ofrgs...c0d6-4c89-87bc

  8. #8
    SitePoint Addict
    Join Date
    Sep 2007
    Posts
    371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Rebirth Studios View Post
    Ok, and can someone remind me how Google and the others treat the url when it is dynamic. Do they read up to the question mark and throw the rest out, or do they read the whole thing...how does this work?

    http://www.domain.com/page.asp?ofrgs...c0d6-4c89-87bc
    They read the whole thing, the only thing not to do is to use too many get parameters. One more thing, with dynamic URLs you lose some of the advantage if the keywords you are targeting is after the question mark part in your URL.

  9. #9
    Error 404: Life not found silver trophybronze trophy
    Join Date
    Dec 2007
    Location
    UK Nr Manchester
    Posts
    3,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dman_2007 View Post
    One more thing, with dynamic URLs you lose some of the advantage if the keywords you are targeting is after the question mark part in your URL.
    Why is that?
    It's 530 people, but do you really get it?
    ImgWebDesign - Web design in Buxton, High Peak, Derbyshire UK.

  10. #10
    SitePoint Guru Rebirth Studios's Avatar
    Join Date
    Mar 2003
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dman_2007 View Post
    They read the whole thing, the only thing not to do is to use too many get parameters. One more thing, with dynamic URLs you lose some of the advantage if the keywords you are targeting is after the question mark part in your URL.
    How many is too many?

  11. #11
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,426
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    It is difficult to give a hard number but try to keep it down to a handful or less (I'd lean towards less).

  12. #12
    SitePoint Guru Rebirth Studios's Avatar
    Join Date
    Mar 2003
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dman_2007 View Post
    They read the whole thing, the only thing not to do is to use too many get parameters. One more thing, with dynamic URLs you lose some of the advantage if the keywords you are targeting is after the question mark part in your URL.
    Right, my inclination is to put it at the end of the url...
    (i.e. /category/specific.aspx?ofrgstub=109bdc2c)

  13. #13
    SitePoint Addict
    Join Date
    Sep 2007
    Posts
    371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JJMcClure View Post
    Why is that?
    Don't know the exact reason, but maybe because it is supposedly easy to modify the later part of the URLs to include large number of keywords. I should have added that this is the case IMO. Anyway, i generally don't think having keywords in the URL makes that much of a difference (maybe in case of ultra competitive keyword it might matter), but if you are going to go through the trouble of rewriting your URL, you might as well make it look completely static.


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
  •