internal error 500 htacess

Hi. i edited htacess from wordpress dashboard and now it shows up internal error 500. i munable to go to my site, admin area, dashboard. as i guess it needs to be recovered, updated or undo or disable htacess (i don t know how to say) how can i do that, how can i fix this issue. i edited htacess by adding some code snippet from random video tutorial. i didn’t know possible results. (despite that i was wondering about something will go wrong)


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @levanmirvelashvili,

I would recommend either trying to delete the code snippet which you added and then save the file again and see if this works.

If the site is still returning a 500 error I would recommend just adding default .htaccess file with the following content:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Make sure to take a backup of your current .htaccess file just in case anything goes wrong.

Besides that to see the exact problem which is causing the error, you can take a look at your Apache error log:

  1. sudo tail -f /var/log/apache2/error.log

Let me know how it goes! Regards, Bobby

@bobbyiliev i didn t have backup. can in back up now