How To Edit .htaccess File Straight From WordPress Dashboard

.htaccess is a very important file which is responsible for many different features. It is responsible for many errors like 503, 403 , forbidden, etc.

This file can be accessed via the Cpanel. This file can be accessed via the web, ftp client like : FileZilla. Whenever you need to edit it for any purpose , you need to use either the Web Cpanel or the Ftp client.

However, accessing the .htaccess file from the Cpanel or ftp clients takes time. It would be great if we could edit it straight from the WordPress dashboard. Today we will show you how to access or edit the .htaccess file from the dashboard.

How To Edit .htaccess file straight from WordPress Dashboard

Method 1 : Using WP Htaccess Editor

We all hate to go to the cpanel or file zilla for editing files. Even though most of the stuffs can be done from WordPress dashboard except htaccess. However, there are some pllugins which will allow you to edit your .htaccess file from the WordPress dashboard.

WP Htaccess Editor is such a plugin which gives you the ability to edit your .htaccess file straight from the WordPress dashboard. This is a huge time saver for lazy a$$ people like us. This plugin not only allows you to edit it but gives you the option to restore a backup if you messed up.

Edit .htaccess file straight from the WordPress dashboard

How To Install And Use WP Htaccess Editor

  1. Go to WP Htaccess Editor
  2. Download it
  3. Upload it via the “add new” option from plugin menu
  4. Or you can extract it in the wp-content/plugins via cpanel or filezilla
  5. Now from the left bottom corner, you will see the Setting, hover over your mouse and select the htaccess
  6. You can edit the file from there
  7. It will look like the image below
editing htaccess with wordpress plugin WP Htaccess Editor

Method 2 : WordPress SEO by Yoast: Edit Files

Seo by Yoast is a very popular plugin which allows you to do many stuffs from the dashboard. It even allows you to edit the .htaccess and robots.txt files. many people are using this plugin for SEO purpose. If you haven’t installed it then may be this is the time you get this installed.

  1. Go to Yoast
  2. Select tools
  3. Click on “file Editor
  4. Now you can edit the .htaccess and robots.txt file from there
  5. It will look like below
htaccess yoast

I hope you have successfully edited the .htaccess file from your WordPress dashboard. Please note that any wrong editing might cause massive failure in your site. So if you are planning to change the codes of .htaccess file, you better know what you are doing.

These are currently the simplest ways of editing .htaccess file from WordPress dashboard. We will update this article if there are any other ways To Edit .htaccess file straight from WordPress Dashboard. Happy blogging !!!


Afsar is a passionate and dedicated individual who is currently working on a WordPress news site. With extensive experience in content creation and digital media, Afsar is responsible for delivering engaging and informative articles to the site's audience. Utilizing the latest tools and technologies, Afsar is constantly striving to improve the user experience and drive traffic to the site. When not working, Afsar can be found reading the latest news and staying up to date on industry trends, always looking for ways to bring fresh and exciting content to the site.

Click Here to Leave a Comment Below 4 comments
How To Enable GZIP Compression in WordPress - December 6, 2015

[…] You can enable gzip compression via editing your .htaccess file. By adding these code , gzip compression will be enabled in your WordPress sites. You can edit the .htaccess from the Cpanel or FTP client and even from the WordPress dashboard. Note: Learn How To Edit .htaccess File Straight From WordPress Dashboard […]

Itender Rawat - January 3, 2017

Hi, This post is really useful. I was confused in editing htaccess file. This is helpful for me.

vivek kumar - September 25, 2017

Awesome post about .htaccess file, I learned so much today.

vaibhav patel - February 28, 2018

Hi, This post is really useful. I was confused in editing .htaccess file.


Leave a Reply:

By continuing (scrolling) to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.