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)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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:
- sudo tail -f /var/log/apache2/error.log
Let me know how it goes! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.