[drupal-devel] [bug] htaccess - rewriteengine giving error 500

JohnG drupal-devel at drupal.org
Tue Apr 26 22:28:35 UTC 2005

Issue status update for http://drupal.org/node/21385

 Project:      Drupal
 Version:      4.6.0
 Component:    file system
 Category:     bug reports
 Priority:     critical
 Assigned to:  Anonymous
 Reported by:  JohnG
 Updated by:   JohnG
 Status:       patch

(I'm guessing this falls into the filesystem category ... please feel
free to move it if appropriate)

immediately following upgrade from 4.5.2 (2005.03.15) to 4.6.0 (on
linux-apache-mysql-php server)

getting error 500 reports everytime I click a link (from the admin or
home page).

The problem seems to lie about 3 or 4 lines from the end of the
htaccess file: the ReWriteRule is missing a backslash preceding

it did look like this
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

it should look like this
  RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

in context, this is the end of the htaccess file, with the
correction:  # Rewrite current-style URLs of the form
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
# $Id: .htaccess,v 1.66 2005/03/20 19:15:00 dries Exp $

A number of other solutions have been put forward for this recurring
problem. I found this solution from a 4.4 issue at

It seems to work just fine and is obviously preferable to disabling the
Htaccess or ReWriteEngine and losing clean URLs.

good luck to y'all


More information about the drupal-devel mailing list