I do not seem to be able to enable Clean URLs with Drupal 4.6.2 on the root of my FC4 Apache 2.0.54 configuration html directory. I've double-checked that mod_rewrite is properly installed but every time I enable it in admin/settings I get the following error message:

It appears your host is not configured correctly for Clean URLs. Please check for ModRewrite support with your administrator.

Any ideas what might be causing this? Is this a bug in drupal?

I've attempted to alter my settings in the .htaccess file as per these threads, but nothing seems to work:

ModRewrite check doesn't work
HELP !! How to make clean url work on Apache 2 ??

Comments

jDrupafan’s picture

I had a problem and I eventually got it to work. I added this at the top of the

RewriteBase /

Maybe that will help

rgladwell’s picture

Sorry, what did you add?

sepeck’s picture

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

rgladwell’s picture

I have to admit, I'm not sure how that helps me: I'm using the default .htaccess with Rewrite code already included in that and that documentation page is for Apache 1.3 (I mentioned, I'm running Apache 2.0).

I still have no idea how to get this working on why the mod_rewrites aren't working. Examining my error_log I can see the following error message:

[Mon Aug 15 08:57:50 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/system, referer: http://localhost/?q=admin/settings
[Mon Aug 15 09:00:25 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/system, referer: http://localhost/?q=admin/settings
Emiliano’s picture

Hi,
I'm using Suse, but maybe it's the same situation:

Take a look at: http://drupal.org/node/10840

Cheers,

Emiliano
http://www.novayork.com

rgladwell’s picture

Hi Emiliano,

Thanks for you suggestion. I did try that, but I couldn't figure out which files was "/etc/sysconfig/apache2" on my system: I'm running Fedora 4.

Little_John’s picture

I'm running Apache 1.3.29 and I have mod_rewrite installed but Drupal does not see it.

Here is what I have in httpd.conf:

==================
RewriteEngine On

# RewriteRule ^/$ /main/ [R,L]

{ The above works. It converts requests to http://example.com/ to http://example.com/main/ . For clean URL testing, I have this line removed. }

<Directory "/var/www/htdocs/main">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
==================

Here is what I have in /var/www/htdocs/main/.htaccess:

==================
<IfModule mod_rewrite.c>
RewriteBase /main
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /main/index.php?q=$1 [L,QSA]
</IfModule>
==================

Anyone?

--
Peter

revival’s picture

Yes, dreadful mess, all this .htaccess stuff, isn't it. Drives you mad.

Anyway, what helped for me was to chown (change ownership) of the .htaccess file

from

revival:user (my name) to
wwwrun:www (so the server can see it)

All works fine now, after an hour of hitting the computer...

Hope this helps.

R