Odd htaccess/rewrite issue

Discussion in 'Site & Server Administration' started by kingcaw, Dec 13, 2007.

  1. #1
    I'm hitting my head against a brick wall with this issue, so hopefully someone can shine some light on what the problem may be.

    A customer has purchased one of my scripts, which makes use of mod rewrites; however, it appears that there is an issue with a variable being passed from the 'clean' url to the 'masked' one...

    RewriteRule ^video/([_A-Za-z0-9-]+).html/?$ video.php?video=$1 [L]
    Code (markup):
    By that above rule, anything between 'video/' and '.html' should be passed through as $1... so video/blah.html should return video.php?video=blah

    Simple enough...

    However, this just isn't happening... everything using the above url structure is just returning 'video.php?video=' with no variable on the end.

    We've sold hundreds of copies of this script and this error has never come up before, so surely it can't be related to the actual coding

    Additionally we thought it might be a problem with globals, but checked this and its not (directly accessing video.php?video=whatever' works just fine)

    On top of that, this rule is practically identical to others in the same htaccess file, all of which work fine (ie we also have ^category/([_A-Za-z0-9-]+).html/?$ video.php?category=$1 which works perfectly)

    So yeah... i'm stuck here... any suggestions/insight?
     
    kingcaw, Dec 13, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    RewriteRule ^video/([^.]+)\.html$ video.php?video=$1 [L]
     
    Nintendo, Dec 17, 2007 IP