Remove symlinks option from .htaccess

Created on 5 September 2011, about 14 years ago
Updated 9 September 2025, 7 days ago

Problem/Motivation

  • An increasing number of operating systems and hosts have tightened up their security settings and now forbids +FollowSymLinks option in the .htaccess file that comes with Drupal core. This causes an error 500 when accessing the site. When they introduced this policy they automatically converted +FollowSymLinks to +SymLinksIfOwnerMatch. A Drupal upgrade overwrote this change.

Affected platforms and systems

Proposed resolution

Don't set Options +FollowSymLinks in our .htaccess files.

Remaining tasks

None

Why is this an RC target?

If a server 500's because of this setting then people can not even install Drupal.

Alleged +FollowSymlinks weakness which leads to security exploits

Contrib module that support SymLinksIfOwnerMatch

🐛 Bug report
Status

Closed: outdated

Version

8.0 ⚰️

Component

base system

Created by

🇬🇧United Kingdom AFowle

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024