Skip to main content

500 Internal server error after deleting .htaccess file.

Comments

5 comments

  • triantech
    Hey, What was the content of your .htaccess file ? Check what is in the httpd error_logs when you visit the website. # grep 'domainname' /usr/local/apache/logs/error_log | tail -100
    0
  • server9host
    Hello, Please try to use below default .htaccess file : RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
    0
  • b24rye
    @triantech Here is the codes: Mon Sep 01 16:52:22 2014] [alert] [client 113.190.161.56] /home/minaedu/.htaccess: DeflateCompressionLevel not allowed here [Mon Sep 01 16:42:34 2014] [alert] [client 113.190.161.56] /home/minaedu/public_html/.htaccess: Redirect to non-URL
    @server9host Your solution doen't work! Thank friends!
    0
  • b24rye
    The only action that caused to this error is deleting .htaccess file. And i'm just needing some guides to recover that file. Nothing more!
    0
  • cPanelMichael
    Hello :) Yo will not be able to recover the files unless you have backups enabled on your server. If you do, you could extract the backup archive for that account, move those files back into place, and then update the ownership/permission values. Otherwise, check to see if the following files exist: /home/$user/.htaccess /home/$user/public_html/.haccess You mentioned the files were empty, but the error messages suggest otherwise. Thank you.
    0

Please sign in to leave a comment.