WordPress .htaccess file setup for WordPress user

WordPress .htaccess file

WordPress .htaccess file

WordPress .htaccess file: Sometimes, changes to WordPress .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 (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).

WordPress .htaccess file:

  • Login to your server via FTP (or SFTP).
  • Often you will land exactly where you need to which is the root of the server, but if you have WordPress installed in a subfolder, browse there by double clicking the folder.
  • Make a backup of the existing .htaccess file. You can do that by right-clicking it, and clicking “Rename”. Perhaps add “backup” to the end of the existing file name.
  • Download your backed up .htaccess file by double clicking it. Make sure you know where it lands on your computer!
  • Within FileZilla, rename the downloaded file (the one on *your* computer) back to the original file name (.htaccess). That way, when you upload it after modifying it, it’ll be ready to rock.
  • Open the downloaded .htaccess file in a text editor.
  • Delete ALL text within it.
  • Copy over the text below into your downloaded .htaccess file.
# 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
  • Save the file.
  • 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).
READ  Delete old blog posts of wordpress- tips and tricks

If it doesn’t work, make sure that you followed the steps above precisely, and that you copied the text exactly.

%d bloggers like this:
Read previous post:
Computer Virus
Computer Virus Problem and Meaning of Virus

Computer Virus: What is a computer virus? An unskilled person in PC can  says  what is a  Computer virus ?. How...