{"id":10010,"date":"2026-04-27T07:22:34","date_gmt":"2026-04-27T07:22:34","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=10010"},"modified":"2026-04-27T08:02:22","modified_gmt":"2026-04-27T08:02:22","slug":"how-to-enable-htaccess-on-agency-plans","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-enable-htaccess-on-agency-plans\/","title":{"rendered":"How to enable .htaccess on Agency plans"},"content":{"rendered":"<p><code class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\">.htaccess<\/code> is a configuration file used by Apache-based web servers to control redirects, access permissions, and advanced WordPress setups. On Hostinger&rsquo;s Agency Hosting plans, <code class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\">.htaccess<\/code> support is <strong>disabled by default<\/strong> to preserve optimal performance &mdash; but it can be enabled directly from your website Dashboard whenever needed.<\/p><h2 class=\"text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold\" id=\"h-steps-to-enable-htaccess-support\">Steps to Enable .htaccess Support<\/h2><ol class=\"[li_&amp;]:mb-0 [li_&amp;]:mt-1 [li_&amp;]:gap-1 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal flex flex-col gap-1 pl-8 mb-3\">\n<li class=\"whitespace-normal break-words pl-2\">Log in to <strong>hPanel<\/strong> at <a class=\"underline underline underline-offset-2 decoration-1 decoration-current\/40 hover:decoration-current focus:decoration-current\" href=\"https:\/\/hpanel.hostinger.com\" target=\"_blank\" rel=\"noopener\">hpanel.hostinger.com<\/a>.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Navigate to <strong>Websites<\/strong> and click <strong>Dashboard<\/strong> next to the website you want to configure.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Scroll down to the <strong>Settings<\/strong> section.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Locate the <strong>.htaccess support<\/strong> toggle.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Click the toggle to <strong>enable<\/strong> it. The toggle will turn purple when active.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">The setting is applied automatically &mdash; no additional save step is required.<\/li>\n<\/ol><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-10011 size-large\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/Screenshot-2026-04-27-at-10.22.05-1024x441.png\" alt=\"\" width=\"1024\" height=\"441\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/Screenshot-2026-04-27-at-10.22.05-1024x441.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/Screenshot-2026-04-27-at-10.22.05-300x129.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/Screenshot-2026-04-27-at-10.22.05-768x331.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/Screenshot-2026-04-27-at-10.22.05-1536x662.png 1536w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/Screenshot-2026-04-27-at-10.22.05.png 1750w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p><h2 class=\"text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold\" id=\"h-what-htaccess-support-enables\">What .htaccess Support Enables<\/h2><p class=\"font-claude-response-body break-words whitespace-normal leading-[1.7]\">Once enabled, you can use <code class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\">.htaccess<\/code> rules for:<\/p><ul class=\"[li_&amp;]:mb-0 [li_&amp;]:mt-1 [li_&amp;]:gap-1 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-1 pl-8 mb-3\">\n<li class=\"whitespace-normal break-words pl-2\"><strong>URL redirects<\/strong> &mdash; set up 301\/302 redirects without modifying server configuration<\/li>\n<li class=\"whitespace-normal break-words pl-2\"><strong>Access control<\/strong> &mdash; restrict or allow access to specific directories or files<\/li>\n<li class=\"whitespace-normal break-words pl-2\"><strong>Advanced WordPress setups<\/strong> &mdash; support for custom permalink structures, security rules, or plugin-specific requirements<\/li>\n<li class=\"whitespace-normal break-words pl-2\"><strong>Custom error pages<\/strong> &mdash; define pages for 404, 403, and other HTTP errors<\/li>\n<\/ul><h2 class=\"text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold\" id=\"h-performance-considerations\">Performance Considerations<\/h2><div>Hostinger&rsquo;s Agency Hosting uses Hostinger Web Server technology by default. It natively handles most redirect and rewrite use cases more efficiently than .htaccess. For best performance:<\/div><ul class=\"[li_&amp;]:mb-0 [li_&amp;]:mt-1 [li_&amp;]:gap-1 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-1 pl-8 mb-3\">\n<li class=\"whitespace-normal break-words pl-2\">Keep <code class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\">.htaccess<\/code> disabled unless your specific setup requires it.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">If you only need basic redirects, consider using the <strong>Redirects<\/strong> tool in hPanel instead.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">After enabling <code class=\"bg-text-200\/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]\">.htaccess<\/code> and making your changes, you can always <strong>disable it again.&nbsp;<\/strong><\/li>\n<\/ul><h2 class=\"text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold\" id=\"h-disabling-htaccess-support\">Disabling .htaccess Support<\/h2><p class=\"font-claude-response-body break-words whitespace-normal leading-[1.7]\">To turn it off, follow the same steps above and click the toggle again to disable it. The toggle will return to its grey\/inactive state.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>.htaccess is a configuration file used by Apache-based web servers to control redirects, access permissions, and advanced WordPress setups. On Hostinger&rsquo;s Agency Hosting plans, .htaccess&#8230;<\/p>\n","protected":false},"author":632,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[294],"tags":[],"class_list":["post-10010","post","type-post","status-publish","format-standard","hentry","category-agency-hosting-plans"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10010","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\/632"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=10010"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10010\/revisions"}],"predecessor-version":[{"id":10018,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10010\/revisions\/10018"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=10010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=10010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=10010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}