How to Restore Your WordPress .htaccess File

This tutorial will assist you with the simple steps to restore your WordPress .htaccess file via FTP.

How to Restore Your WordPress .htaccess File

Making changes to the Permalinks will get saved to the .htaccess file. This can be a possible reason for the 404 Wordpress error. You can manually edit the .htaccess file through FTP using text editor to fix the 404 Wordpress error.
Follow the simple steps to restore .htaccess file,
Step 1: Open the FileZila.
Step 2
: Enter your Host name, User name, Password, Port number and click on Quick Connect to connect to the server.
Webappsftp1
Step 3: Locate and open the Public_html folder.
Wp404ftp3
Step 4: Locate the .htaccess file.
Wp404ftp2
Step 5: Right click the .htaccess file and select View/Edit to edit the file.
Htaccess3
Step 5: Open the file using any text editor. Now, you can able to edit the file. Do not make any changes to the code unless you are sure about it.
Htaccesscode
Step 6: Before making any changes to your old .htaccess file, take a back up of it.
Step 7: Replace the existing code with the below given code without any modifications. That means it will remove any changes made to your permalink structure.
# 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>
# END WordPress
Step 8: You have successfully restored your WordPress .htaccess file via FTP.