Clean URL state is managed through the Drupal variable clean_url.

  • clean url disabled: clean_url is 0
  • clean url enabled: clean_url is 1

You can force this value by:

  • Using drush
    drush vset clean_url 1
  • Using a direct SQL query
    UPDATE variable SET value=1 WHERE name='clean_url';
  • Force a value in settings.php
    $conf['clean_url'] = 1;
Advertisements