installing drupal,i can't select the enable checkbox of Clean URLs. how should i do? thank you!

Comments

mehanathen’s picture

There will be a link named Run clean url test. I will make u through

jinlong’s picture

how to deal with it?

thank you !

---------------------------------------------------------------------------
Women Lose Weight-->I would love to lose weight!

jinlong’s picture

how to deal with it?

thank you !

---------------------------------------------------------------------------
Women Lose Weight-->I would love to lose weight!

mauror’s picture

The Drupal documentation page about clean url is at http://drupal.org/node/15365.
Starting with Drupal 5.x, there is no more 'run clean url test' link, drupal automatically performs a clean url test and if your apache configuration does not allow clean urls, then the checkbox is greyed out (disabled).
In order to enable clean url you must fiddle with apache configuration.
First thing first you must be sure mod_rewrite is enabled and AllowOverride is set to All.
If mod_info is enabled and configured in apache you can point your browser to http://www.example.com/server-info and see a nice page with the actual configuration of your apache. Documentation is at http://httpd.apache.org/docs/2.2/mod/mod_info.html.
Then you should experiment with the RewriteBase directive found in the .htaccess file in the root of your drupal installation: for a start you could try removing the # in front of RewriteBase /, that is

  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /

becomes

  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  RewriteBase /

Anyway, full apache documentation is at http://httpd.apache.org/docs/2.2/rewrite/ and at http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride.