• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

.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