Mod_rewrite from htaccess problem

Discussion in 'Apache' started by jalex, Aug 2, 2007.

  1. #1
    i have below rule witch works fine:
    ^(.*)/ /page.php?title=$1 [L,NC]
    but when i try to modify with the rule:
    ^(.*) /page.php?title=$1 [L,NC] (same rule without "/" ) i get an internal server error..

    how can i write the rule without "/", so the domain.com/title to be rewrited in page.php?title=title?

    thanks
     
    jalex, Aug 2, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    ^(.+)? /page.php?title=$1 [L]

    Or

    ^(.+)?/? /page.php?title=$1 [L]
     
    krt, Aug 2, 2007 IP