Cannot seem to replace html with php

Discussion in 'Apache' started by WhatiFind, Feb 2, 2006.

  1. #1
    I've got this small problem..

    I have this url: www(.)mydomain/category/234.php
    Want to use htaccess to call this page: www(.)mydomain/category/index.php?topic=234

    I tried to use this rewrite rule to do it..

    RewriteRule ^([0-9]+).php$ index.php?go=topic&id=$1 [L,NC]

    And it didn't work. So I did a small test to see if the rule is working.

    I've replaced .php with .html so calling

    www(.)mydomain/category/234.html with this rule
    RewriteRule ^([0-9]+).html$ index.php?go=topic&id=$1 [L,NC] and it worked,

    But this is not what I'm looking for. Is there something I'm missing?
     
    WhatiFind, Feb 2, 2006 IP