{"id":14484,"date":"2021-10-26T14:47:55","date_gmt":"2021-10-26T14:47:55","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=14484"},"modified":"2025-05-30T17:41:18","modified_gmt":"2025-05-30T12:11:18","slug":"how-to-create-edit-htaccess-file-via-directadmin","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/","title":{"rendered":"How to Create\/Edit .htaccess File via DirectAdmin?"},"content":{"rendered":"<p><strong>Watch this video for a step by step process on How to Create\/Edit .htaccess File via DirectAdmin<\/strong><\/p>\n<div class=\"youtube-video\" style=\"border: 1px solid #ddd;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/0PykAJAnNdQ\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p>It is surprisingly easy to create or edit a .htaccess file using DirectAdmin. The file contains configuration directives for other on-server files and directories.<\/p>\n<h2>To Create\/Edit .htaccess File<\/h2>\n<p>1. Log in to your DirectAdmin account.<\/p>\n<p>2. Go to the <strong>System Info &amp; Files<\/strong> section and click on <strong>File Manager<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11514\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/04\/file_manager_diradm.png\" alt=\"\" width=\"1450\" height=\"236\" \/><\/p>\n<p>The <em>File Manager<\/em> interface will open in a new tab.<\/p>\n<p>Originally, a .htaccess is a hidden file by default and therefore unviewable to users. It is why we recommend you check if the file exists before creating one.<\/p>\n<p>3. Enter the following text in the address bar to check if the .htaccess file is present or not.<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true \">domain.com:2222\/CMD_FILE_MANAGER\/domains\/domain.com\/public_html\/.htaccess?action=edit<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13628\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_check_censored.jpg\" alt=\"\" width=\"1598\" height=\"367\" \/><\/p>\n<p>If it shows an error message, the file is absent. It means you can create the .htaccess file.<\/p>\n<p>4. Navigate to the <em>public_html<\/em> folder and click the <strong>+\u00a0<\/strong><strong>NEW<\/strong>\u00a0menu.<\/p>\n<p>5. A dropdown menu will appear where you have to select the <strong>Text File<\/strong> option and then <strong>Plain Text<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13630\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_public_html_text_file_plain.jpg\" alt=\"\" width=\"1599\" height=\"690\" \/><\/p>\n<p>A popup window will appear where you can name and create a file.<\/p>\n<p>6. Enter <em>.htaccess<\/em> in the text field and click <strong>CREATE<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13631\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_create.png\" alt=\"\" width=\"454\" height=\"262\" \/><\/p>\n<p>The new .htaccess file will appear in the list of directories.<\/p>\n<p>7. Right-click on the <em>.htaccess<\/em> file and select <strong>Edit<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13632\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_edit.png\" alt=\"\" width=\"472\" height=\"435\" \/><\/p>\n<p>8. Enter the directives and click <strong>SAVE<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13633\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png\" alt=\"\" width=\"1578\" height=\"658\" \/><\/p>\n<p>Yes, it is that simple to create and edit a .htaccess file via DirectAdmin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Watch this video for a step by step process on How to Create\/Edit .htaccess File via DirectAdmin It is surprisingly easy to create or edit a .htaccess file using DirectAdmin. The file contains configuration directives for other on-server files and directories. To Create\/Edit .htaccess File 1. Log in to your DirectAdmin account. 2. Go to [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1798,41],"tags":[672,627,628,2631,1421],"class_list":["post-14484","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-directadmin","category-howtos","tag-htaccess","tag-htaccess-file","tag-create-htaccess-file","tag-create-edit-htaccess-directadmin","tag-edit-htaccess-file"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create\/Edit .htaccess File via DirectAdmin?<\/title>\n<meta name=\"description\" content=\"This article will guide you and explain the process to create and edit a .htaccess file with the help of the File Manager tool in DirectAdmin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create\/Edit .htaccess File via DirectAdmin?\" \/>\n<meta property=\"og:description\" content=\"This article will guide you and explain the process to create and edit a .htaccess file with the help of the File Manager tool in DirectAdmin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-26T14:47:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-30T12:11:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/04\/file_manager_diradm.png\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/\"},\"author\":{\"name\":\"Prasad Khartadkar\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"headline\":\"How to Create\/Edit .htaccess File via DirectAdmin?\",\"datePublished\":\"2021-10-26T14:47:55+00:00\",\"dateModified\":\"2025-05-30T12:11:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/\"},\"wordCount\":238,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/04\/file_manager_diradm.png\",\"keywords\":[\".htaccess\",\".htaccess file\",\"create .htaccess file\",\"create edit htaccess DirectAdmin\",\"edit .htaccess file\"],\"articleSection\":[\"DirectAdmin\",\"How-Tos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/\",\"name\":\"How to Create\/Edit .htaccess File via DirectAdmin?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/04\/file_manager_diradm.png\",\"datePublished\":\"2021-10-26T14:47:55+00:00\",\"dateModified\":\"2025-05-30T12:11:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"This article will guide you and explain the process to create and edit a .htaccess file with the help of the File Manager tool in DirectAdmin.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create\/Edit .htaccess File via DirectAdmin?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"sameAs\":[\"https:\/\/www.milesweb.in\"],\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create\/Edit .htaccess File via DirectAdmin?","description":"This article will guide you and explain the process to create and edit a .htaccess file with the help of the File Manager tool in DirectAdmin.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/","og_locale":"en_US","og_type":"article","og_title":"How to Create\/Edit .htaccess File via DirectAdmin?","og_description":"This article will guide you and explain the process to create and edit a .htaccess file with the help of the File Manager tool in DirectAdmin.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-10-26T14:47:55+00:00","article_modified_time":"2025-05-30T12:11:18+00:00","og_image":[{"url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/04\/file_manager_diradm.png","type":"","width":"","height":""}],"author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/"},"author":{"name":"Prasad Khartadkar","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"headline":"How to Create\/Edit .htaccess File via DirectAdmin?","datePublished":"2021-10-26T14:47:55+00:00","dateModified":"2025-05-30T12:11:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/"},"wordCount":238,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/04\/file_manager_diradm.png","keywords":[".htaccess",".htaccess file","create .htaccess file","create edit htaccess DirectAdmin","edit .htaccess file"],"articleSection":["DirectAdmin","How-Tos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/","name":"How to Create\/Edit .htaccess File via DirectAdmin?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/04\/file_manager_diradm.png","datePublished":"2021-10-26T14:47:55+00:00","dateModified":"2025-05-30T12:11:18+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"This article will guide you and explain the process to create and edit a .htaccess file with the help of the File Manager tool in DirectAdmin.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-edit-htaccess-file-via-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Create\/Edit .htaccess File via DirectAdmin?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=14484"}],"version-history":[{"count":4,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14484\/revisions"}],"predecessor-version":[{"id":19302,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14484\/revisions\/19302"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=14484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=14484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=14484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}