RewriteRule: cannot compile regular expression

Discussion in 'Apache' started by swiftnomad, Nov 4, 2009.

  1. #1
    Here is my error:

    .htaccess: RewriteRule: cannot compile regular expression '([a-zA-Z0-9\\-\\_]*?)\\.html'\n

    Does anyone know why am I getting this error? I'm going to smash my head. It works on localhost but my server don't like it. :(
     
    swiftnomad, Nov 4, 2009 IP
  2. chadsmith

    chadsmith Peon

    Messages:
    82
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try using:

    ([A-z0-9_\-]+)\.html
    Code (markup):
     
    chadsmith, Nov 9, 2009 IP