Help with Mod_Rewrite

Discussion in 'Apache' started by Archbob, Dec 14, 2007.

  1. #1
    Right now I have this code:

    
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule p(.*)\.php$ /games.php?ID=$1
    
    Code (markup):
    Which works, but I need another page gamecat.php?ID=1 to redirect to c[IDHERE].php also.

    I tried:

    
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule p(.*)\.php$ /games.php?ID=$1
    RewriteRule c(.*)\.php$ /gamecatphp?ID=$1
    
    Code (markup):
    But the two conflicted with each other.

    How can I solve this?

    Thanks
     
    Archbob, Dec 14, 2007 IP
  2. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #2
    What are the possible values you plan to have for IDHERE in both scenarios ?
     
    joebert, Dec 15, 2007 IP