Site Not Working After Editing or Deleting HTACCESS – Fixed

Please Subscribe to our YouTube Channel

HTACCESS file is used by WordPress tell Apache how the permalinks are handled. However, it’s not just the permalink, but there are a lot of things that you can do with the .htaccess file, e.g. setting up cache header, protecting your media files from unauthorized access and embed, and so on…

Editing .htaccess file is allowed and people do it to edit the configuration according to their need. If you are new to WordPress and you deleted of edited this file, your site may go down due to a little mistake. So you are not supposed to edit .htaccess file unless you really know what you are doing. But, the good new here is that you can always restore to its default setting and bring your site back to normal.

How to fix “Site Down” issue after editing or Deleting .htaccess File?

The simple solution to fix the issue is to restore .htaccess file to its default configuration. However, please note that any configuration you made via .htaccess file will be lost.

  • Copy the follow code and create a .txt file using any text editor.OR You can also download this file and rename to .htaccess. Make sure it’s not .txt, but .htaccess.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
  • Upload the file under domain’s root directory using any FTP client or your hosting’s default web client.

That’s it, your site should be back to normal now.