Apache doesn't recognize "-" in my .htaccess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • palomino5
    New Member
    • Oct 2012
    • 2

    Apache doesn't recognize "-" in my .htaccess

    I'm having a problem with my .htaccess

    I don't know exactly what it's happenning but my apache is not recognizing "-" in my .htaccess.

    For example, this rule is not being recognized:

    RewriteRule ^p-dentista/(.*) /p-dentista.php?pa g=$1

    If I use pdentista instead of p-dentista, it works.

    Do you know what's happenning??

    Thank yoU!!
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    This happens probably because the docs say:
    - (dash)A dash indicates that no substitution should be performed (the existing path is passed through untouched). This is used when a flag (see below) needs to be applied without changing the path.

    Comment

    • palomino5
      New Member
      • Oct 2012
      • 2

      #3
      I think that it should be some apache configuration, because my htaccess was working well in my last server, but the problemas has begun when i moved the web to a new server.

      Comment

      Working...