By Jaffylainen on
Got an installation of Drupal 6.2 just set up and workin (it seems) on Bluehost. Bluehost has the mod_rewrite enabled by default.
At the admin page ?q=admin/settings/clean-urls both radiobuttons are disabled meaning I can't turn clean urls on, I can't enable clean urls. The following error mesage is shown:
Your system configuration does not currently support this feature. The handbook page on Clean URLs has additional troubleshooting information.
I've searched for the solution for this but the only thing I found was to enable mod_rewrite, which should be set already so it can't be that, or?
Can I test that the mod_rewrite is enabled? What other configuration is needed?
Thanx,
Comments
you need to alter your
you need to alter your .htaccess file or the httpd.conf file, i recommend .htaccess. Heres a sample file:
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
Order allow,deny
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic links in this directory.
Options +FollowSymLinks
# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php
# Force simple error message for requests for non-existent favicon.ico.
ErrorDocument 404 "The requested file favicon.ico was not found.
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
# PHP 5, Apache 1 and 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# Requires mod_expires to be enabled.
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
ExpiresByType text/html A1
# Various rewrite rules.
RewriteEngine on
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# $Id: .htaccess,v 1.93 2008/06/28 19:48:21 dries Exp $
Hope this helps you.
still not able to enable clean urls
thanx for the suggestion but it diidn't do the trick, so other configuration perhaps?
I updated the .htaccess file, which lies in directly in the public html folder where drupal also is installed, with the code above and then went to the admin page but I still cn't choose to enable clean urls.
I know that the .htaccess file is in the right place because when I put something strange in it I get an Internal Server Error when refreshing the admin page. So the .htaccess file is read for sure.
Other suggestions?
resolved
but don't really know what it was. I upgraded to Drupal 6.3 and all of a sudden the options were available. I think that maybe some file were broke or something in the 6.2 installation...
I also have the same problem
I am encountering the same problem. Buy my installation is 6.11, is 6.2 and 6.3 are dev releases? We are going live some time next week, what are my other options? Thanks,
I had a similar issue and I
I had a similar issue and I finally fixed it.
what I did was basically copy paste my other sites htaccess and now it works.
It was strange cause I just built a new site and without really touching the htaccess I noticed it looked completely different.
let me know if you fixed the issue.
Can you post your working .htaccess file?
I can not get my new 6.16 install to work either. I tried putting everything directly in the conf file and that had no effect.