How to create a new .htaccess file

August 16, 2023 / cPanel & WHM

In this guide, we have explained how to create a new .htaccess file. You can create a new .htaccess file in cPanel using File Manager. The .htaccess file includes many directives that guide the server how to handle some situations and directly regulate your website functions.

Follow the steps to create a new .htaccess file-

  1. Log in to cPanel.
  2. Select the “Files” section and click on the “File Manager” sub-option.
    file manager
  3. You will enter file manager.
  4. Click on “+File” option from the left hand side of the screen.
    file
  5. A pop up window will open up; enter the file name. The file name should be “.htaccess”.
  6. Also, add the directory where you want to save the new file as shown in the image given below.
  7. Click on “Create New File” button.
    create a new .htaccess file

This way, you can create a new .htaccess file in cPanel. Hope you liked our article. If you find any difficulty, seek help from our support staff at your earliest.

Dominos Search