I installed Drupal 5 like I always do on my same hosting account and went to enable Clean URLs like I always do right after a Drupal installation and for the first time ever Clean URLs is greyed out (un-checkable).

It's in...
Administrator > Site Configuration > Clean URLs

I use WINXP and my Cheap Hosting I'm renting is setup with LAMP.

I googled around and searched around Drupal.org all evening and I havn't seen anything on this? Anyone have any clues for me how to get this module enabled so I can enable Clean Urls?

Thanks!

- Parablood

Comments

ineation’s picture

Hi,

That is normal you have to click on the test link that you will find inside the text of the Clean URL page, if your system is OK then you will have the ability to enable it. If not it means that you have to configure your system for it. In general it involves looking at you .htacces file.

You can have a look at the doc here http://drupal.org/node/15365. It is easy to find I have just typed "clean url" on the search engine.

Do not hesitate to come back here if this page do not solve your issue.

Alex
http://www.ineation.com

parablood’s picture

Thanks for the post.

Yea I had clicked the test link before I posted and I got the page not found:

Not Found

The requested URL /admin/settings/clean-urls was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.gx2.info Port 80

so I must need to configure it. I have seen that help page but I don't think I'm understanding it correctly. The strange thing is... I have active sites right now on the same server both versions 5 and 6 and they can all enable clean urls. No problem. I just don't understand why this 1 version 5 installation is having problems. I'll keep reading that help page see if I can figure something out.

parablood’s picture

I tried reinstalling drupal 5 but I recieved the same results. I also tried copying over a .htaccess from a working drupal 5 "clean URLs" script on the same server but that also did not help. I still haven't figured out how to enable Clean URLs :(

So weird... it was working for me no problem just a few weeks ago.

ineation’s picture

Can you just check to see if you really have a .htaccess file in you root directory of Drupal (ls -a from the shell)?
Cause of the dot the file can get lost sometime. Then have you checked the ownership and permission of this file ?

Alex
http://www.ineation.com

parablood’s picture

woot! woot!

Thanks that worked.

I re-uploaded the .htaccess file from a previous drupal 5 installation and put it in the drupal 5 installation that had the clean url enable problem then once I gave the file full CHMOD 777 I was then able to enable Clean Url's.

Hope its ok set to 777 the other ones are set to 644

ineation’s picture

Hum, I do not think that 777 is a good setting for such a file.
You should better check the ownership (ls -l in the shell) so that it is the same as the other files.

Courage, you have nearly finished with it !

Alex
http://www.ineation.com

parablood’s picture

yea your probably right I set it to 644 same as the .htaccess files in the other sites and clean URL's is still working properly.

Thanks again!

- Parablood

mhamed’s picture

ok
I ve got the same problem with drupal 7
Controlled the directory and seen that i ve got no .htaccess
but
.htaccess.txt
deleted the .txt extension
reloaded my configuration /clean urls page
and seen for the first time :the tick box enable clean URL
saved the configuration
and that is all
all my urls converted from " example.com/?q=node to /example.com/node or page name "