I installed Drupal in a folder www/drupal/index

I'd now like to move it to the root folder www/index

I was hoping that because all paths are generated dynamically, it would work to simply copy the folder to the root. But it doesn't. The index page loads properly, but all links are broken. For example, www/drupal/node/4 works, but not www/node/4.

I have clean urls enabled, I don't know if that changes anything.

Is there a configuration I need to specify for the root folder of the install?

Comments

shawnp’s picture

You should be able to move the files around and still have drupal work. You just have to tell your webserver where the root of your installation is being housed. What type of webserver are you using? Apache, IIS ??

arh1’s picture

be aware of the rewrite rules in your .htaccess file, cache, and file paths in the db.

here's my response to someone else posing this same question recently.

crookednumber’s picture

What is $base_url (in your settings.php) file set to?

jmlavarenne’s picture

Thanks for all the pointers. For some reason the .htaccess file was not copied over when I copied the folder's content.

vako’s picture

You can find more details on this link: http://drupal.org/node/3366