Enabling clean URLs

In a fresh Drupal installation URLs are generated following the pattern ‘yoursite/?q=node/2’, which makes them not very usable by search engines, or readers. Drupal clean URLs (ie ‘yoursite/about-us’) are disabled by default because they rely on the way the webserver is configured.

To enable clean URLs, navigate to the 'Clean URLs' configuration page (Administration » Configuration » Clean URLs), select 'Enable' and save.

For more information please visit the Clean URLs page on Drupal.org

Clean URLs on IT Services shared server

Normally clean URLs configuration is handled by the .htaccess file included in the standard Drupal installation.

IT Services shared server ignores the .htaccess file, so sites hosted there won’t be able to use clean URLs.

In order to solve the issue, site administrators should log a job to DOI Helpdesk requesting to include the whole set of .htaccess instructions in the Apache configuration file, and attaching a copy of the original .htaccess file.

About this article

Drupal version: Drupal 6, Drupal 7
Topics: Server & hosting
Last updated: 07 December 2012

Related resources

Updated:  17 October 2017/Responsible Officer:  CMBE & CPMS Web Admin/Page Contact:  CMBE & CPMS Web Admin