Skip to content

Update .htaccess for Apache 2.4 #513

@MECU

Description

@MECU

I'm not an expert in Apache, but I think the only changes required to the .htaccess for upgrading from v2.2 to v2.4 is changing this:

<FilesMatch "\.(inc|info|module|sh|sql)$|^(\..*)$">
  Order allow,deny
</FilesMatch>

to this:

<FilesMatch "\.(inc|info|module|sh|sql)$|^(\..*)$">
  Require all denied
</FilesMatch>

Perhaps just add a comment like this:

<FilesMatch "\.(inc|info|module|sh|sql)$|^(\..*)$">
  Order allow,deny
# If using Apache 2.4, comment out the above line and un-comment this line:
#  Require all denied
</FilesMatch>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions