How to
Reset the htaccess File of WordPress Site Using FTP: Sometimes,
changes to a .htaccess file, whether manually or via a tool with appropriate
access, renders a WordPress site inoperable. It might be that all pages 404, or
there is simply a white screen without errors, or you get redirected to weird places,
or you have the inability to login.
The steps below assume that you have FTP software (I use FileZilla) installed and that you have loaded
your FTP details into the Site Manager (you can get these details from your web
host, and often this is simply: host address, username, and password).
Hare are the steps you need to fallow
# 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]
</IfModule>
Head
back to FileZilla, and double click the file on your computer so that it
uploads back to the server. If you followed the steps above exactly, it *will
not* ask you to overwrite any files, because .htaccess will not already exist
on the server (because you renamed it to preserve the original, albeit broken,
one).
Test.
If it doesn’t work, make sure that you followed the steps above precisely, and
that you copied the text exactly.
Post a Comment