- Edit apache configuration
- Make sure
LoadModule rewrite_module modules/mod_rewrite.so
- Edit .htaccess file and change
# RewriteBase /
- Restart Server
If you have locked yourself out, visit
http://example.com/?q=user just like you do to re-enable offline sites. You can log in there, enough to become admin, although none of the navigation will work yet.
http://example.com/?q=admin/settings/clean-urls (in DRUPAL 5 and 6) to view the page where you can unset clean URLs.
Your interface will be usable again.
Other options that should get the same result include:
- Run the drush commands:
drush vset clean_url 1 --yes
- Run the mysql commands:
UPDATE variable SET value = 's:1:"0";' WHERE name = 'clean_url';
DELETE FROM cache;
- Alternatively, you can modify the appropriate settings.php file to include the line
$conf['clean_url'] = 0;
at the bottom (or similar code in the site settings array you'll see there).