I am trying to enable clean urls on my test site, and I am running into a problem that I haven't seen mentioned anywhere (yes, I have searched extensively, both within this site and through google!). After I enabled mod rewrite, when I click on the run clean url test link, it returns me to admin/settings/clean-urls page, but the radio buttons are still grayed out. If I look in the database at the variable table, I see that it has inserted a row for Name='clean_url' with a value of 'i:0'. If I type in the "clean" version of a url into the address bar, I land on the page I want, but the URL displays as the "dirty" format ../?q=en/..
I am running drupal 5.1 on Apache2 2.2.3 on Ubuntu 7.04 (if this matters ...)

Comments

petrotool’s picture

im getting the same problem ,

however,

my .htaccess file was not working , i am hosted with streamline.net. after looking here on this site i found a fix by deleting the content in the htaccess file and replacing it with this

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1

this then enabled my clean url test to run but the radio buttns are still greyed out, i am stll searching for a way to manually force it to activate, if i find a fix il post it ,

Pantze’s picture

I am getting the gray radiobuttons. Drupal seems to have run the test successfully, since the message is

'Din server har testats och har stöd för denna funktion.' (Swedish for successful test of server)

Anyone?

extexan’s picture

Same problem here... I enabled mod_rewrite in Apache and clean URLs started working on my localhost test site (Drupal 6.10) - verified by going to localhoast/myalias/admin/settings - which, in my case, showed the "clean" URL, but when I clicked on "Clean URLs", it showed the "dirty" version.

My radio buttons are also greyed out, but below it is the message:
"Your server has been successfully tested to support this feature."

It's never too late to have a happy childhood. ;-)

francewhoa’s picture

Same here. The following worked for me. http://ubuntuforums.org/showthread.php?p=7677302#post7677302

Loving back your Drupal community result in multiple benefits for you  
uniyolu.com’s picture

Just add "/" before index.php at your .htaccess file. then your problem would be fixed.

intelligentdesigner’s picture

This was driving me bananas. I ended up manually editing the value of clean_urls in the variable table (to "1"). Reloading the clean urls admin page then showed me enabled radio buttons, but if I used the radios to turn clean urls off again they'd go back to being grayed out like before. Crazy.

algeorge’s picture

Clean urls works non-localhost. Once I use same install of drupal locally, the clean urls option is disabled even though Apache rewrite_module is running.
settings.php points to correct base url.
Have tried everything in the Drupal FAQ for clean urls.

It appears to be an Ubuntu installation problem, as I have this on two PC with localhost, but remote copy (with settings.php path correction,) works perfect.

I am wondering what the last option in previous post means 'editing the value of clean_urls to 1' where do I do this as its not in my base.

Anyone suffered the same annoyance please dont reply if its already covered in Drupal FAQ here:
http://drupal.org/getting-started/clean-urls

Polyspiral’s picture

that worked for me xxx