500 Internal server error after deleting .htaccess file.
Hi friends, I have accidently deleted my .htacces file in cpanel and didn't know how to recover it. :D
It caused to the 500 Internal Server Error. I have tried some ways but didn't work. :confused:
Someone can give me a hand, please! :)
-
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 -
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 -
@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 -
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 -
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.
Comments
5 comments