• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

.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