{"id":1503,"date":"2019-02-08T10:35:58","date_gmt":"2019-02-08T10:35:58","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583395-what-to-do-if-the-htaccess-file-is-missing\/"},"modified":"2026-03-16T12:12:17","modified_gmt":"2026-03-16T12:12:17","slug":"1583395-what-to-do-if-the-htaccess-file-is-missing","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583395-what-to-do-if-the-htaccess-file-is-missing\/","title":{"rendered":"What to Do if the .htaccess File Is Missing"},"content":{"rendered":"<p class=\"no-margin\">If you are looking for your website&rsquo;s .htaccess file and cannot find it, there are two possible reasons:<\/p><ul>\n<li>\n<p class=\"no-margin\">The file does not exist &ndash; in that case, you can simply <b><a href=\"\/support\/1583307-how-to-create-an-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">create it<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">The file is <b>hidden<\/b><\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">In the second case, you can make it visible using the <b><a href=\"#h_d27bafe336\" target=\"_blank\" class=\"intercom-content-link\">File Manager<\/a><\/b> or via <b><a href=\"#h_dab3ac2274\" target=\"_blank\" class=\"intercom-content-link\">FTP<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_d27bafe336\">File Manager<\/h2><p class=\"no-margin\">Files with a dot at the beginning are hidden files; however, on the <b><a href=\"\/support\/4548688-basic-actions-in-file-manager\" target=\"_blank\" class=\"intercom-content-link\">File Manager<\/a><\/b>, these are set to be visible by default. If you cannot see the .htaccess file, go to the File Manager <b>Settings<\/b> section, and uncheck the <b>Hide dotfiles <\/b>option:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/179caf1d-d8c1-42a0-8df4-6fcd872e4a38.jpg\"><\/div><p class=\"no-margin\">Next, click on <b>Update<\/b> to save the changes. Now you will be able to see all hidden files, including .htaccess &#128522; <\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_dab3ac2274\">FTP client<\/h2><p class=\"no-margin\">If you are using an FTP client such as FileZilla, you can set it up to show all hidden files by default &ndash; just navigate to the <b>Server<\/b> menu and select <b>Force showing hidden files<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/102605f1-97e3-42f8-9046-b5c4d0b61626.jpg\"><\/div><p class=\"no-margin\"><b>Additional resources<\/b>:<\/p><ul>\n<li>\n<p class=\"no-margin\">If you&rsquo;re using cPanel, refer to this guide:<b> <a href=\"\/support\/4622407-how-to-show-hidden-files-htaccess-in-cpanel-file-manager\" target=\"_blank\" class=\"intercom-content-link\">How to show hidden files (.htaccess) in cPanel File Manager<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Troubleshooting missing .htaccess file using File Manager at Hostinger<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[237],"tags":[],"class_list":["post-1503","post","type-post","status-publish","format-standard","hentry","category-htaccess-file"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583395-what-to-do-if-the-htaccess-file-is-missing\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583395-que-hacer-si-falta-el-archivo-htaccess-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583395-que-faire-si-le-fichier-htaccess-est-manquant-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583395-bagaimana-cara-memunculkan-file-htaccess-di-hostinger\/","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/1583395-ka-daryti-jei-nera-htaccess-failo-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583395-o-que-fazer-se-o-arquivo-htaccess-estiver-faltando-no-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583395-----htaccess-\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1503"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1503\/revisions"}],"predecessor-version":[{"id":5288,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1503\/revisions\/5288"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}