How to edit htaccess file via the cPanel Filemanager?


  1. Log into your cPanel account.
  2. In the "Files" section, click on the "File Manager" icon.
    File Manager Icon
  3. cPanel File Manager will be open. Select the appropriate domain name or folder location, and press the "Go" button.
  4. Navigate to the directory where your .htaccess file is located. If you want to edit the .htaccess file of your root directory, navigate to the public_html folder.
  5. If the .htaccess file does not show, click on the "Settings" button in the File Manager (top right menu). In the window that opens, mark the "Show Hidden Files (Dotfiles)" option and click "Save". You will be able to see the .htaccess file. If it does not exist, create a new one.
    Show Hidden Files
  6. Right click on the .htaccess file and then on "Edit" or "Code Edit" in the Context Menu.
    Edit .htaccess
  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.
    Code Editor Window
  8. Make changes to your .htaccess file and then click on the "Save Changes" button.
    Save Changes

Was this answer helpful?

One email a month. Endless business benefits.

Don't miss out on WMTWWFY — the newsletter that keeps your website fast, safe, and visible.

« Back
Spinner
aluminium-anthropoid Security Check