HOW TO: Edit .htaccess File via the cPanel File Manager

Last modified: April 13, 2020
You are here:
Estimated reading time: 1 min

To Edit .htaccess File via the cPanel File Manager follow the below steps –

1. Log into your cPanel account.

2. Click on the “File Manger” icon in the “Files” area.

htaccess-edit-File Manager
Select File Manager

 

3. cPanel File Manager will be open, pick out the suitable domain name or folder location, and press the “Go” button.

4. Browse to the folder where your file .htaccess file is located. To edit your root directory’s .htaccess file, go to the public_html folder.

5. Click on the “Settings” button in the File Manager if the .htaccess file does not display. On the right side of the top menu, you can discover the “Settings” button. There’s going to open a new small window. Click on the “Save” button to select the “Show Hidden Files (Dotfiles)” option. You will be able to see the .htaccess file. Create a new one if it doesn’t exist.

htaccess-edit-Preferences
Select the “Show Hidden Files” option.

 

6. Right click on the .htaccess file and after that on “Edit”  in the Context Menu.

select the "Show Hidden Files (Dotfiles)" option.
htaccess-edit-Edit .htaccess file in Context Menu

 

7. If the small “Code Editor” window is open, click on the “Edit” button, which will open a new window with options you can edit.

htaccess-edit-Code Editor
Code Editor

 

8. Make changes to your .htaccess file and then click on the “Save Changes” button.

htaccess-edit-Save Changes
Save the Changes

 

Was this article helpful?
Dislike 0
Views: 36
Customer Services Contact

Need Help? Send a Ticket to our 24X7 Technical Support Team

Subtitle
Subscribe Newsletter

Subscribe to Casbay Newsletter for online tips, events and latest promotion !

Copyright © 2010 – 2020 Casbay Sdn. Bhd. (1042688-D). All Rights Reserved.

All Trademarks Are The Property of Their Respective Owner.