[drupal-devel] [bug] htaccess - rewriteengine giving error 500
Dries
drupal-devel at drupal.org
Fri May 6 12:42:56 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: Dries
Status: patch
Won't this break setups who run Drupal from a 'subdirectory'
(http://example.com/~username/drupal/)?
How come no one else has this problem?
Without further details/support, I'm inclined to mark this "Won't fix".
Dries
Previous comments:
------------------------------------------------------------------------
April 27, 2005 - 00:28 : JohnG
problem:
(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
index.php.
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
'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
</IfModule>
# $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
http://drupal.org/node/7836.
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
JohnG
More information about the drupal-devel
mailing list