1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

.htaccess gives 500 Internal Error

Discussion in 'Plesk for Linux - 8.x and Older' started by J-v-N, Dec 25, 2006.

  1. J-v-N

    J-v-N Guest

    0
     
    Hello,

    I have a very weird problem everything was working fine until a few days ago mysql gave mysql_too_many_connections error so I've rebooted the server after that I started to get 500 Internal Errors

    after some digging around I found out that its the .htaccess file if I remove the file it works fine

    I've started to check the file if the hole file is remarked "#" it works fine if I get one line out of remark it gives 500 Error

    heres the file

    Code:
    RewriteEngine off
    ##point to installation directory
    ##if it is the root dir,enter /
    ##else /otherdir
    RewriteBase  /
    
    RewriteCond %{QUERY_STRING} ^d=([a-zA-Z0-9]{8})$
    RewriteRule ^$ download.php?id=%1
    
    RewriteCond %{QUERY_STRING} ^d=([a-zA-Z0-9]{12})$
    RewriteRule ^$ delete.php?id=%1
    
    RewriteRule   ^file/([0-9]+)/(.*)$ download.php?id=$1&type=2 [L]
    
    RewriteRule   ^top/([0-9]+)\.html$ top.php?s=$1&type=1 [L]
    
    I checked /var/log/apache2/error_log and nothing was there

    edit:

    Issue solved mod_rewrite wasn't enabled it took me quite some time to figure it that I have to load it from /etc/sysconfig/apache2 but it works now
     
Loading...