8 requires mod_rewrite but .htaccess file includes <IfModule !mod_rewrite.c>

Created on 15 February 2016, over 9 years ago
Updated 8 June 2023, almost 2 years ago

I may be wrong but it appears mod_rewrite is required for Drupal 8.

In Drupal 8, clean URLS are enabled by default and can't be disabled. You will need some form of rewrite module installed on your web server.

Though in .htaccess the following code exists.

# Set a fallback resource if mod_rewrite is not enabled. This allows Drupal to
# work without clean URLs. This requires Apache version >= 2.2.16. If Drupal is
# not accessed by the top level URL (i.e.: http://example.com/drupal/ instead of
# http://example.com/), the path to index.php will need to be adjusted.
<IfModule !mod_rewrite.c>
  FallbackResource /index.php
</IfModule>

It might be a good idea to comment or remove the code because someone who had not read all of the documentation might think it was there for a reason.

Thanks

πŸ› Bug report
Status

Closed: works as designed

Version

8.9 ⚰️

Component
BaseΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States gmorrison

Live updates comments and jobs are added and updated live.
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