How do I Edit the .htaccess file from WordPress Dashboard?

Well, the .htaccess file is the file which is responsible for the errors like 503, 403, forbidden and so on. Usually this file is hidden by default in the cPanel. However, to edit this file we use FileZilla or other FTP client software that installs in the computer. But it’s much typical way of editing the file .htaccess, then I came across additional two ways of editing this file in WordPress. Both are much effective yet easy to accomplish. So, I’m going to let you know that both of ways that I learnt so far about how to edit .htaccess file from WordPress dashboard.

Two Ways to Edit .htaccess file from WordPress Dashboard

1. WP Htaccess Editor

This simple .htaccess file editor is only for experienced users and from now you can edit the file called .htaccess from your WordPress dasboard rather than using FTP client.

WordPress Htaccess Editor

WP Htaccess Editor

Installations and Usage:

  1. Download the .zip file
  2. Extract the .zip into wp-content/plugins directory
  3. Come back and activate the plugin through the Admin panel of your WordPress
  4. Under Settings -> Htaccess

WP htaccess Editor01

5. Now, you’ll probably see the content present in your .htaccess file currently like:

content of Htaccess file Editor

2. WordPress SEO by Yoast: Edit Files

Both .htaccess and robots.txt files play very important roles and one of the best SEO plugin WordPress SEO by Yoast gives you the ability to edit both files.

Robots.txt is the file which allow the search engine robots to read about your website content and then show that content in the search engines, here what a screenshot for the file editor of WordPress SEO by Yoast:

Robots txt file editorTo edit the .htaccess file using WordPress SEO by Yoast’s edit files feature, you will be able to edit the file much like you edited the robots.txt file above.

Edit .htaccess files

These are the both simple ways that I was talking about editing file called .htaccess and I hope you will like both.

How People found this article:

2 Responses

  1. Xeshan Ali September 29, 2013 / 3:32 pm

    I have tried to eidt .htaccess file clicked save now my website is not working it says internal server error 500. even my wp-admin also not working I don’t know whats wrong with it please help me.

    • Muhammad Haroon September 29, 2013 / 3:49 pm

      Dear @Xeshan Ali just login to cPanel and go to the root directory where your WordPress is installed. Just edit the .htaccess file from cPanel…

Leave a Reply

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

3 + 2 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>