I made a silly flub and enabled clean urls while away from my computer. I'm unable to set up ModRewrite on my server where I am now, but I would like to be able to disable clean urls. Is this variable stored anywhere in the MySQL database that I might access it remotely and change it back?

Comments

sanduhrs’s picture

Go to ?q=admin/settings

rszrama’s picture

I feel like a dunce. I made a flub and a stupid post. ^_^ I knew the "dirty" url, but when I had tried to save the change back to disabled, I received the error message saying it was unable to find the page it was posting to (so I figured it was trying to post to a clean URL). I just should have tried once more, eh?

sym’s picture

You could also have deleted the clean_url variables in the variables table. I've had to do that before because it can't find the page i'm posting the changed for to.

Steven’s picture

Or read the FAQ, because it answers exactly this question.

--
If you have a problem, please search before posting a question.

greggles’s picture

Indeed - the FAQ page is very handy for Disabling Clean URLs

--
Growing Venture Solutions
Drupal Implementation and Support in Denver, CO

brooksie’s picture

Yep. I just used delete * from drupal.variable where name = 'clean_url'; and that did the trick!

smartdownload’s picture

alisamar’s picture

This is the easiest way :)

/**
 * Variable overrides:
 *
 * To override specific entries in the 'variable' table for this site,
 * set them here. You usually don't need to use this feature. This is
 * useful in a configuration file for a vhost or directory, rather than
 * the default settings.php. Any configuration setting from the 'variable'
 * table can be given a new value. Note that any values you provide in
 * these variable overrides will not be modifiable from the Drupal
 * administration interface.
 *
 * Remove the leading hash signs to enable.
 */

$conf = array(
	'clean_url' => 0,
);
strndy’s picture

Add this line to the end of settings.php

$conf[ 'clean_url'] = 0;