Help With PHP & Mod_Rewrite

Discussion in 'Programming' started by Cronus, Jun 15, 2009.

  1. #1
    I am using mod rewrite in an attempt to make my next site extremely seo-friendly, however, I am having a few issues.

    This is the code I have in the .htaccess file:
    RewriteEngine On # Turn on the rewriting engine
    RewriteRule ^([A-Za-z0-9-]+)/([0-9]+)/([A-Za-z0-9-]+)/?$ $1.php/?first=$2&second=$3 [NC,L]
    Code (markup):
    The link I am using is:
    http://wwwDOTiwantplayersDOTcom/index/5/test-if-this-is-working/

    Obviously you can test what the real page should look like by just going to the main domain.

    Please tell me if you can help figure out what is wrong. It is obviously working but there is just a random error of some sort that doesnt let the page show correctly.
     
    Cronus, Jun 15, 2009 IP
  2. stOK

    stOK Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    RewriteRule ^([A-Za-z0-9-]+)/([0-9]+)/([A-Za-z0-9-]+)/?$ $1.php/?first=$2&second=$3 [NC,L][/code]
     
    stOK, Jun 15, 2009 IP
  3. Cronus

    Cronus Active Member

    Messages:
    343
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #3
    I have used your update, still no change.
    Any idea what could be wrong?
     
    Cronus, Jun 15, 2009 IP
  4. Cronus

    Cronus Active Member

    Messages:
    343
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Can anyone help with this?
     
    Cronus, Jun 17, 2009 IP
  5. nishanair

    nishanair Active Member

    Messages:
    188
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Please visit Mod_rewrite
    And ask your doubts to "richardk", he will help you better.
     
    nishanair, Jun 19, 2009 IP