Already I have shared a post on how to create .htaccess file and now in this post I’m sharing how to edit .htaccess file.
Step1: Log-in into cPanel by typing URL (mentioned below) and click on “File Manager” as shown below:
http://www.domainame.com/cpanel (replace domain name with your domain name)
Step2: When you click on “File Manager” it open a new window (i.e. your root directory) as shown below:
Step3: Now select .htaccess file (in root directory) and click on “Edit” in navigation menu (as shown below):
Step4: Now start editing your .htaccess file according to your needs.
Before you start editing your .htaccess file, be sure to take a back up of your .htaccess file