How to Edit .htaccess in cPanel's File Manager

Before we do anything, it is suggested that you backup your website so that you can revert back to a previous version if something goes wrong.

To edit the .htaccess file, first we will open the File Manager:

  1. Login to cPanel.
  2. Click on "File Manager" in the "Files" section.
  3. Select "Document Root for:" and select the domain name you wish to access.
  4. Make sure "Show Hidden Files (dotfiles)" is checked.
  5. Click the "Go" button. 
    The File Manager will open in a new tab or window.
  6. Look for the .htaccess file in the list of files. You may need to scroll to find this file.
  7. Right click on the file and click on "Code Edit" on the menu. (Alternatively, you can click on the icon for the .htaccess file and then click on the "Code Editor" icon at the top of the page.)
  8. A dialogue box may appear asking you about encoding. Just click on the "Edit" button to continue. 
    The editor will open in a new window.
  9. Edit the file as needed.
  10. Click on the "Save Changes" button in the upper right hand corner when done. 
    The changes have been saved. Test your website to make sure it has the desired effect. If not, correct the error or revert back to the previous version until your site works again.
  11. Once complete, you can click "Close" to close the window.

Once complete, you can click "Close" to close the window.

  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

cPanel Tutorials

Please click on the link, or copy and paste into your address bar, to view the Cpanel Guide:...

I deleted or cannot find php.ini file or need to increase max_execution_time

How to modify php.ini settings in cPanel Log onto your cPanel using your cPanel login details...

How to login to cPanel

cPanel is a control panel which is offered with our hosting plans to manage your hosting account....

How to modify or edit php.ini in cPanel

Login to your cPanel, Locate the Multi PHP Editor under the Software Section Select the...