need help

Discussion in 'Apache' started by choice, Jul 7, 2006.

  1. #1
    could some body tell me how i would go about creating a search engine friendly mod that would make the url look different at the moment they look like this

    /product.php?products_id=96

    but i would like them to be something like

    /product.php?404selfimprovements_id=96
     
    choice, Jul 7, 2006 IP
  2. Edynas

    Edynas Peon

    Messages:
    796
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If I am righjt it should be something like this

    
    RewriteEngine on
    RewriteRule ^product.php?products_id=(.*) product.php?404selfimprovements_id=$1
    
    Code (markup):
    It should be on 2 lines and not 3

    Hope this works for you
     
    Edynas, Jul 8, 2006 IP
  3. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #3
    don't forget that even with the rewrite rules, you'd still need to modify the actual script to churn out the friendly urls anchors... ;)
     
    daboss, Jul 8, 2006 IP