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.
How To Install And Use WP Htaccess Editor
- Go to WP Htaccess Editor
- Download it
- Upload it via the “add new” option from plugin menu
- Or you can extract it in the wp-content/plugins via cpanel or filezilla
- Now from the left bottom corner, you will see the Setting, hover over your mouse and select the htaccess
- You can edit the file from there
- It will look like the image below
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.
- Go to Yoast
- Select tools
- Click on “file Editor
- Now you can edit the .htaccess and robots.txt file from there
- It will look like below
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 !!!