How to modify a .htaccess file from cPanel

  Print

How to modify a .htaccess file from cPanel


Step 1 - Log into cPanel and click on File Manager.


61ae58a301c89c7081fb3ebc735ac4805c151ae095fadf579fe695a7029463d38204aee787840525?t=b0df80b9b7b5d558e3d326f334a1930e


Step 2 - Make sure that “Show Hidden Files” is enabled. To do this, click on Settings in the top right.

htacc02a.png


Step 3 - Check that Show Hidden Files is ticked, and click Save.

htacc03.png


Step 4 - (Optional) If there is no file called '.htaccess':
(1) Click + File.
(2) Type '.htaccess'.
(3) Select Create New File.

b8cf1098839af1daad13789ee48a4820e2e2588d?t=b2b873dd15e15225e7c713b4c2935432


Step 5 -
(1) Navigate to the public_html directory.
(2) Right click on the .htaccess file.
(3) Click edit.

30742877ebf6444b2f8bf9c55bbbd9db968886fe?t=9f6a1dcfcba7ba5054febee9a0884e4f


Step 6 - Click Edit.

htacc05.png


Step 7 - When you have finished editing the file, click Save Changes.

htacc06.png


Did you find this article useful?  

Related Articles

© Crucial