How to Edit .htaccess file from WordPress Dashboard

Edit .htaccess file from WordPress Dashboard

Hypertext Access file in short .htaccess file is a configuration file used in Apache web server. It allows you to control files and folders in the current directory, and all sub directories. You can read more about this file at here.

WordPress users some times need to access this file and edit for some purposes. There are 3 main methods to edit this file, first one is through the Cpanel, then using FTP services and the last one is using Plugins. Here we were discussing about how we can access and edit the .htaccess file from WordPress dashboard with the help of plugins.

1. With the help of Yoast SEO plugin

I think you will be familiar with this plugin, because it’s one of the best SEO tool available in WordPress. If you are not using any other SEO plugin’s then install it. Yoast SEO plugin has one build in feature to create and edit the .htaccess file.

you can find this feature at SEO >> Tools > File editor .

yoast seo plugin tools file editor


yoast seo plugin .htaccess file editor wordpress


Click on File editor and You will get the option for editing the .htaccess file. Do the changes according to your need and then save the changes. Always remember to make a copy before doing any alteration to this file. Because any mistake can make issues with your site so handle the .htaccess file with care.

2. Using WP Htaccess Editor

wp htaccess editor plugin installation


WP Htaccess Editor is one of the best plugin created for this specific purpose. All you need to do is install and activate it. You can then get the file edit option at you dashboard menu. It also allows users to restore a backup if necessary.

So these are the two best plugins available for this special purpose. If you are already using Yoast SEO plugin, then no need to use the second method. Yoast has also several features including creating and editing of Robot.txt file.


Also Read: 

M S Sujeesh

Leave a Reply

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