Mod Rewrite Question

Discussion in 'Search Engine Optimization' started by Richmond, Virginia SEO, Feb 24, 2006.

  1. #1
    I am working with a developer who is performing a mod rewrite. My question is which is the better way to handle the following url? Or is their a better way than what is listed.

    Currently we have this: http://www.danforthdiamond.com/jewe...ets/?cat_id=150

    … and changing it in the browser address bar to:
    http://www.danforthdiamond.com/jewe...celets/cat/150/

    Should I change the links so that it directly links to /cat/150/ or should I leave it as ?cat_id=150 and allow the mod-rewrite to worry about changing it?
     
    Richmond, Virginia SEO, Feb 24, 2006 IP
  2. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #2
    The point of mod_rewrite for SEO purposes is to make the URLs seem static to Search engines and visitors so they can easily bookmark them. Leaving your URLs with "?" in them is like doing nothing. You might as well not use mod_rewrite.
    Yes.

    p.s. am I the only one that finds it odd that an "SEO company" representative is asking questions such as these?
     
    GeorgeB., Feb 24, 2006 IP
  3. pachecus

    pachecus Well-Known Member

    Messages:
    1,841
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    110
    #3
    You could finish the url with /category or name-of-the-category.html

    RewriteRule ^jewe...celets category.php?cat_id=150 [L]
    or
    http://www.danforthdiamond.com/jewe...ets/?cat_id=150
    RewriteRule ^([[:alnum:]].+)/?cat_id=([[:alnum:]].+)$ category.php?cat_id=$2 [L]
     
    pachecus, Feb 24, 2006 IP
  4. soul-healer

    soul-healer Peon

    Messages:
    1,459
    Likes Received:
    145
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The Second Method is better way as it is Search Engine Friendly.

    You have to change the URLs in the pages or a script written by your coder who will handle all the changes.

    Yes It is possible to have the file names end with .html or .htm extention Just read our respect Nintendo FAQ about mod_rewrite at:
    http://forums.digitalpoint.com/showthread.php?t=23044
     
    soul-healer, Feb 24, 2006 IP
  5. soul-healer

    soul-healer Peon

    Messages:
    1,459
    Likes Received:
    145
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Man at the time i posted my reply there is already 2 post .. Way to GO DP thats why i Love DP Memebers alot they are so friendly and one step ahead in helping each other.

    Cheers.
     
    soul-healer, Feb 24, 2006 IP
  6. Richmond, Virginia SEO

    Richmond, Virginia SEO Peon

    Messages:
    69
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks, SoulHealer, that is exactly what the programmer needs. Best forum for seo on the web in my opinion.
     
    Richmond, Virginia SEO, Feb 24, 2006 IP
    mad4 likes this.
  7. soul-healer

    soul-healer Peon

    Messages:
    1,459
    Likes Received:
    145
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I am gald Richmond that you have your answers

    Best of luck with your project.
     
    soul-healer, Feb 24, 2006 IP
  8. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #8
    mad4, Feb 24, 2006 IP