cPanel - Control Panel, Web Hosting

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

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

Steps to edit (Dot)htaccess File in the cPanel File Manager

Open the relevant account or settings

  1. Log in to your cPanel account.

  2. In the Files section, click on File Manager.

    In the Files section, click on File Manager .
  3. Navigate to the directory where your dot htaccess file is located. To edit the .htaccess file of your root directory, navigate to the public_html directory.

Complete the next part of the process

  1. If the .htaccess file is not visible, click Settings in the top right corner of the File Manager. In the settings window, check the box next to Show Hidden Files (Dotfiles) and click Save. The .htaccess file should now be visible. If it is still not there, you can create a new one.

    If the .htaccess file is not visible, click Settings in the top right corner of the File Manager. In the settings window, check the box next to...
  2. Right-click on the dot htaccess file and then Edit in the Context Menu.

    Right-click on the dot htaccess file and then Edit in the Context Menu.

Finish the setup and confirm the result

  1. In a new window box, click on Edit.

    In a new window box, click on Edit .
  2. Make changes to your dot htaccess file and click on Save Changes.

    Make changes to your dot htaccess file and click on Save Changes .

Current Category

Find The Perfect Domain Name

www

Other Knowledge Articles