Setting up Clean URLs

For a fuller step-by-step, you should see Instructions for setting up Clean Urls in the handbook, which includes distro-specific tips.

To avoid duplication, this troubleshooting page is reduced to a checklist.

To enable clean URLs (if they are not working automatically, you need:

  • mod_rewrite enabled in the Apache conf file
  • AllowOverride enabled in the Apache conf or vhosts file (so that .htaccess rules can apply)
  • The .htaccess filename specified in the Apache conf file
  • An .htaccess file in the root of the Drupal directory (may be hidden on some filesystems, but should be there)
  • Rewrite instructions in .htaccess (distributed with Drupal, but sometimes needing tweaking)

Depending on your distribution, some or most of these directives should already be there, probably scattered throughout the file, or even subsidary 'vhost' conf files. You may have to consult the Apache docs or find help specific to your distribution, as these files may vary a lot.

To test your settings, run

apache2ctl -t

or similar for a syntax check. (XAMMP?)

To Lastly reload your http server

apache2ctl restart

(or similar. XAMMP has a shortcut for you)

fixed them all yet not working...

joeking2 - August 4, 2008 - 08:23

Hello, I have been reading the documentation and support forms to fix the clean urls problem on the server. Still didn't dis the problem:
Following the given instructions and following the instructions at http://drupal.org/node/54832, please find below the list of done operations :

* mod_rewrite enabled in the Apache conf file --> ALREADY THE CASE
* AllowOverride enabled in the Apache conf or vhosts file (so that .htaccess rules can apply) -- > DONE in httpd.conf
* The .htaccess filename specified in the Apache conf file --> DONE in the vhost.conf
* An .htaccess file in the root of the Drupal directory (may be hidden on some filesystems, but should be there) --> DONE
* Rewrite instructions in .htaccess (distributed with Drupal, but sometimes needing tweaking) --> DONE

Nevertheless, it does not change the problem.
Any suggestion ?

On some apache installation,

Sakrecoer - August 28, 2008 - 16:01

On some apache installation, the module is claimed to be installed, but acctualy absent in the folder containing the enabled modules.... have you checked that?

 
 

Drupal is a registered trademark of Dries Buytaert.