• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Tips and Tricks HQ

  • Home
  • Blog
  • Projects
    • All Projects
    • Simple WP Shopping Cart
    • WP Express Checkout Plugin
    • WP Download Monitor
    • WP Security and Firewall Plugin
    • WP eStore Plugin
    • WP Affiliate Platform
    • WP eMember
    • WP Lightbox Ultimate
    • WP Photo Seller
  • Products
    • All Products
    • Checkout
  • Support
    • Support Portal
    • Customer Only Forum
    • WP eStore Documentation
    • WP Affiliate Software Documentation
    • WP eMember Documentation
  • Contact

How to Reset the htaccess File of Your WordPress Site Using FTP

You are here: Home / Web Development / Blog Setup / How to Reset the htaccess File of Your WordPress Site Using FTP

Last updated: May 14, 2016





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.

Whatever the case, for me, I usually take the same approach as I do with a very broken computer (or even my body for that matter). I wipe it clean and start fresh. Then I slowly add new “elements” completing a checklist each time making sure that the new element didn’t cause any grief to the overall system (to the best of my ability).

That’s what I would like to demonstrate today. I am going to clear the .htaccess file, and add the essential elements back in. Once the site is operable and you have the ability to login, at that time, it’s OK to add new elements (such as security enhancements, etc.) little by little.



Steps to Reset Your WordPress Site’s htaccess File

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).

If you don’t have any FTP software or you are not familiar with FTP then you should read this tutorial to learn how to use FTP.

  • 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]
    </IfModule>
    
    # 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).

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

If it does work, then make your other changes one by one (starting with making one small change). Test again after the change. If it doesn’t work, it should be obvious as to why. Just backup a step.

Related Posts

  • How To Create an Attractive Subscribe & Follow Box For Your WordPress Blog
  • WordPress Optimization Tips and Tricks for Better Performance and Speed
  • Advanced WordPress Security Tips
  • How to Install WordPress Multi-Site in Localhost (Using XAMPP)

Blog Setup,  Wordpress advanced wordpress security tips,  Video Tutorial,  wordpress blog,  Wordpress install,  wordpress security,  WordPress tutorial

Reader Interactions

Comments (2 responses)

  1. Dean McDonald says:
    January 25, 2019 at 8:22 am

    It worked 1st time for me 10/10 nice clear info on how to fix it.
    Thanks

  2. Rich Low says:
    March 8, 2018 at 11:52 pm

    Hey, Big thanks for that…
    I am a dummy and overwrote my file, but your instructions were invaluable.
    A huge THANKS!

Leave a Reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Featured & Popular Articles

Video Answers to Top WordPress QuestionsWordPress Optimization Tips and Tricks for Better Performance and SpeedEssential WordPress Security Tips - Is Your Blog Protected?WordPress Simple PayPal Shopping Cart PluginTop 15 Search Engine Optimization (SEO) Techniques I Forget to DoList of the Best and Must Use WordPress PluginsHow do I Start a Blog and Make Money Online?Good Domain Name Picking Tips for Your Blog SetupFind Out Which WordPress Web Hosting Company Offers the Cheapest and Reliable Web Hosting Solution

Featured WordPress Plugins

wordpress estore plugin
wordpress membership plugin
WP Express Checkout Plugin
WordPress Lightbox Ultimate Plugin
WordPress photo seller plugin
wordpress affiliate plugin

Recent Posts

  • Accept Donations via PayPal from Your WordPress Site Easil [...]
  • Buy Now Button Graphics for eCommerce Websites [...]
  • Subscription Button Graphics for eCommerce Websites [...]
  • Adding PayPal Payment Buttons to Your WordPress Sidebar Ea [...]
  • PayPal QR Codes [...]

Comment & Socialize

  • @Rodrigo Souza, Thank you f ...
    - admin
  • The example for 'slm_add_ed ...
    - Rodrigo Souza
  • @Ron, All the valid transac ...
    - admin
  • Hello, when people have sel ...
    - Ron
  • We have hte following featu ...
    - admin

Check out our solutions

View our WordPress plugin collection and start using them on your site.

Our WordPress Solutions

Footer

Company

  • About
  • Privacy Policy
  • Terms and Conditions
  • Affiliate Login

Top WordPress Plugins

  • Simple Shopping Cart
  • PayPal Donations
  • WP Express Checkout
  • WP eStore
  • WP eMember

Blogging Tips

  • How to Start a Blog
  • Selecting a Good Domain
  • Cheap WP Hosting
  • WP Video Tutorials
  • Simple SEO Tips

Search


Keep In Touch

Copyright © 2023 | Tips and Tricks HQ