• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

.htaccess gives 500 Internal Error

J

J-v-N

Guest
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
 
Back
Top