By rgladwell on
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
RewriteBase /
I had a problem and I eventually got it to work. I added this at the top of the
RewriteBase /
Maybe that will help
Sorry, what did you add?
Sorry, what did you add?
google
second hit
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
-sp
---------
Test sites and good habits: Drupal Best Practices Guide.
Misc Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
I have to admit, I'm not
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:
httpd.conf.local?
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
Hi Emiliano, Thanks for you
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.
Same problem here
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
chown
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