Http 500 error.. help understand .htaccess file please

Discussion in 'PHP' started by ziya, Jul 24, 2007.

  1. #1
    I got an error http 500 when was trying to reach pages in folders members and members1 .. and i asked my hosting company they replyed me back .. I am sending you the reply :

    "Per our checking, it appears that your .htaccess files in the members and member1 folders have unsupported directives. Please modify your directives or disable the .htacces to fix the issue."


    what do they mean ? I couldnt understand . I am posting you .htaccess file in members :

    RewriteEngine On
    RewriteRule ^(.*)_(.*).html member_profile.php?mid=$2
    php_flag display_errors off

    in members1 :
    RewriteEngine On
    RewriteRule ^(.*)_(.*).html member_profile.php?mid=$2
    php_flag display_errors off

    What do i have to do with it ?

    Please help to understand and fix the problem. Thank you in advance
     
    ziya, Jul 24, 2007 IP
  2. Imran

    Imran Notable Member

    Messages:
    2,340
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    230
    #2
    RewriteEngine On
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-l
       RewriteRule ^(.*)_(.*)\.html member_profile.php?mid=$2 [QSA,NC,L]
    Code (markup):
    Try the above one
     
    Imran, Jul 24, 2007 IP
  3. ziya

    ziya Well-Known Member

    Messages:
    1,971
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Thank you .. it worked.. But what does that code mean ? Can you please help me understand what does your code mean ?
     
    ziya, Jul 24, 2007 IP