{"id":1432,"date":"2019-02-08T10:36:02","date_gmt":"2019-02-08T10:36:02","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583526-why-does-a-password-protected-directory-ask-for-the-password-twice\/"},"modified":"2019-02-08T10:36:02","modified_gmt":"2019-02-08T10:36:02","slug":"1583526-why-does-a-password-protected-directory-ask-for-the-password-twice","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583526-why-does-a-password-protected-directory-ask-for-the-password-twice\/","title":{"rendered":"Why Does a Password-Protected Directory Ask for the Password Twice?"},"content":{"rendered":"<p class=\"no-margin\">Sometimes, when you access a specific subfolder on the website, it might ask you to enter a password twice.  <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">This happens in cases when the password is set not only for the subfolder which you want to open but also for its parent directory. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">It might be useful if you want to keep different sets of permissions for your website&rsquo;s visitors (with different passwords, they can access more directories). However, if that&rsquo;s not intended, you can easily remove the double password request:  <\/p><ul>\n<li>\n<p class=\"no-margin\">Either <b>move the password protection<\/b> from the subdirectory to its parent directory  <\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Remove any rewrite rules\/redirects in <b>.htaccess file(s) above the subfolder<\/b> that you are trying to access<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">If password protection was set in hPanel, you can also manage access from the <b><a href=\"\/support\/1583470-how-can-i-password-protect-my-website\" target=\"_blank\" class=\"intercom-content-link\">Password Protect Directories<\/a> <\/b>page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Solving duplicating password requests<\/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":[263],"tags":[],"class_list":["post-1432","post","type-post","status-publish","format-standard","hentry","category-other"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583526-why-does-a-password-protected-directory-ask-for-the-password-twice\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583526-por-que-un-directorio-protegido-por-contrasena-pide-dos-veces-la-contrasena\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583526-pourquoi-un-repertoire-protege-par-un-mot-de-passe-vous-demande-deux-fois-le-mot-de-passe\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583526-mengapa-direktori-yang-dilindungi-password-meminta-untuk-memasukkan-password-sebanyak-dua-kali\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583526-por-que-o-diretorio-protegido-por-senha-solicita-a-senha-duas-vezes-no-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583526------\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1432","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=1432"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1432\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}