{"id":33690,"date":"2016-09-18T16:05:17","date_gmt":"2016-09-18T16:05:17","guid":{"rendered":"https:\/\/wickedrobot.dev\/support\/?p=31"},"modified":"2025-10-08T06:13:48","modified_gmt":"2025-10-08T06:13:48","slug":"how-to-edit-dothtaccess-file-in-the-cpanel-file-manager","status":"publish","type":"epkb_post_type_1","link":"https:\/\/wickedrobot.dev\/knowledge-base\/how-to-edit-dothtaccess-file-in-the-cpanel-file-manager","title":{"rendered":"How to Edit (Dot)htaccess File in the cPanel File Manager"},"content":{"rendered":"<p><span style=\"font-size: medium;\"><strong>1.<\/strong> Log in to your cPanel account.<\/span><\/p>\n<p><span style=\"font-size: medium;\"> <strong>2.<\/strong> In the <strong>Files<\/strong> section, click on <strong>File Manager<\/strong>.<br \/>\n<img decoding=\"async\" src=\"\/img\/filemanager-icon.gif\" alt=\"\" align=\"middle\" \/><br \/>\n<\/span><br \/>\n<span style=\"font-size: medium;\"> <strong>3.<\/strong> 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. <\/span><\/p>\n<p><span style=\"font-size: medium;\"><strong>4. <\/strong>If the dot htaccess file does not show, click on <strong>Settings<\/strong> in the File Manager. You can find the <strong>Settings<\/strong> button on the right side of the top menu. Mark the <strong>Show Hidden Files (Dotfiles)<\/strong> option in the new window box and click on <strong>Save<\/strong>. Now, the dot htaccess file should be present. If it does not exist, create a new one.<\/span><\/p>\n<p><span style=\"font-size: medium;\"><span style=\"color: #ff0000;\"><img decoding=\"async\" src=\"\/img\/hidden-htaccess-paperlantern.gif\" alt=\"\" align=\"middle\" \/><\/span><\/span><\/p>\n<p><strong><br \/>\n<\/strong><span style=\"font-size: medium;\"> <strong>5.<\/strong> Right-click on the dot htaccess file and then <strong>Edit<\/strong> in the Context Menu. <\/span><br \/>\n<span style=\"font-size: medium;\"> <img decoding=\"async\" src=\"\/img\/filemanager-htaccess.gif\" alt=\"\" \/> <\/span><\/p>\n<p><span style=\"font-size: medium;\"> <strong>6.<\/strong> In a new window box, click on <strong>Edit<\/strong>.<\/span><br \/>\n<span style=\"font-size: medium;\"> <img decoding=\"async\" src=\"\/img\/filemanager-htaccess-edit-menu.gif\" alt=\"\" \/> <\/span><\/p>\n<p><span style=\"font-size: medium;\"> <strong>7.<\/strong> Make changes to your dot htaccess file and click on<strong> Save Changes<\/strong>. <\/span><br \/>\n<span style=\"font-size: medium;\"> <img decoding=\"async\" src=\"\/img\/filemanager--htaccess-edit.gif\" alt=\"\" \/> <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Log in to your cPanel account. 2. 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. 4. If the dot htaccess file does not show, click on Settings in &#8230; <a title=\"How to Edit (Dot)htaccess File in the cPanel File Manager\" class=\"read-more\" href=\"https:\/\/wickedrobot.dev\/knowledge-base\/how-to-edit-dothtaccess-file-in-the-cpanel-file-manager\" aria-label=\"Read more about How to Edit (Dot)htaccess File in the cPanel File Manager\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"epkb_post_type_1_category":[76],"epkb_post_type_1_tag":[],"class_list":["post-33690","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","epkb_post_type_1_category-cpanel"],"_links":{"self":[{"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1\/33690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/comments?post=33690"}],"version-history":[{"count":0,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1\/33690\/revisions"}],"wp:attachment":[{"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/media?parent=33690"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1_category?post=33690"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1_tag?post=33690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}