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
- Edit .htaccess file using cPanel
- 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.
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.
Select .htaccess file and right click on it and select Edit.
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
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.