---
title: "How to resolve \"IfModule not allowed here\" errors"
date: "2022-02-22T16:13:55+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/93926-how-resolve-ifmodule-not-allowed-here-errors"
id: "f091688c-f1bf-4610-acfd-b4c6d8516a2c"
---

Table of contents will be added

Issue
-----

Your application is not loading and you have identified the following error in the [Apache error.log file](/node/56389) :

    .htaccess: <IfModule not allowed here

Resolution
----------

Consolidate .htaccess files in your Git codebase which are outside the /docroot/ directory, or strategically comment out code in .htaccess files outside the /docroot/ directory until you are able to pinpoint the culprit. The primary .htaccess file for your codebase is located at:

    /docroot/.htaccess