How to Find and Edit .htaccess file In WordPress

WordPress beginners have common problem of  finding .htaccess file and How to Edit .htaccess file,  here i like to share something about .htaccess file so, beginners can Understand What is .htaccess file ? why WordPress needed .htaccess file? and How to Edit .htaccess file?

What is .htaccess File in WordPress?

.htaccess mean Hypertext Access and it is a main configuration file used an In Apache-based web server that controls the directory of WordPress files and as well as all the subdirectories underneath of that directory.

What you can do with .htaccess file

password protect folders, ban users or allow users using IP addresses, stop directory listings, redirect users to another page or directory automatically, create and use custom error pages, change the way files with certain extensions are utilized, or even use a different file as the index file by specifying the file extension or specific file.

How to edit .htaccess file in WordPress

  1. Edit .htaccess file using cPanel
  2. Edit .htaccess file via Dashboard using plug-in

1. Edit .htaccess file using cPanel

This is very best method to edit .htaccess file, I am using Bluehost and it’s cPanel very user friendly Every Web Hosting companies provide cPanel facilities and you can edit .htaccess file via cPanel.

For edit .htaccess file you have to login your Hosting cPanel area, on cPanel area goes to files Management and select file manager folder.

Using canel Edit .htaccess file in WordPress

Now you will find .htaccess file root of your WordPress installation file scroll down your installation files at the end of all files you will find .htaccess file.

.htaccess file under file manager

Select .htaccess file and right click on it and select Edit.

Edit .htaccess file in cPanel image

Now Make your change or add code you want and save that’s it!

2. Edit .htaccess file from WordPress Dashboard using plug-in.

There are several plug-ins are available in WordPress Plugin repository, but as I know WordPress SEO by yoast for seo is common in WordPress users if not than Download it, I am also use WordPress SEO by yoast plugin and this plugin have inbuilt facilities so you can edit .htaccess file using WordPress SEO by yoast plugin.

Just login to your WordPress dashboard and select SEO left side of dashboard and select Edit files Option

edit .htaccess file in WordPress using Yoast Plugin

If you don’t have WordPress Seo by yoast Plugin, so there is lots of other plugins are available I recommend this two plugins to use.

Best WordPress Plugins to Edit .htaccess file

I hope this Guide will help you to find and  Edit .htaccess file.

Subscribe

Subscribe and Get Free Daily Wordpress Tips and Tutorial Free!

About Mitul Shah

I just love to working with WordPress and i like to share my knowledge to all over world using this website hope my articles as help to build your blog powerful.

Comments

  1. Hi Mitul,
    Very informative post! I use SEO by Yoast plugin, so it’s easy to edit .htaccess file within the dashboard!
    thanks for sharing! :)

  2. Hi Mitul Shah,

    Very helpful article I must say you are one of the professional blogger on planet.
    Thank You.

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.

*

Notify via Email Only if someone replies to My Comment