File Manager 58 Recently updated 2 min read

How to Edit (Dot)htaccess File in the cPanel File Manager

How to Edit (Dot)htaccess File in the cPanel File Manager

  1. Log in to your cPanel account.
  2. In the Files section, click on File Manager.
  3. Navigate to the directory where your .htaccess file is located. To edit the .htaccess file of your root directory, navigate to the public_html directory.
  4. If the .htaccess file does not show, click on Settings in the File Manager. You can find the Settings button on the right side of the top menu. Mark the Show Hidden Files (Dotfiles) option in the new window box and click on Save. Now, the .htaccess file should be present. If it does not exist, create a new one.
  5. Right-click on the .htaccess file and then select Edit from the context menu.
  6. In the new window box, click on Edit.
  7. Make changes to your .htaccess file and click on Save Changes.

Related articles

Discussion

Loading the discussion…