Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've drupal installed in

I'm now ready to change the root directory of the website to drupal/ in order to make it available as ''.

However I was wondering if all the files and images uploaded with CCK content fields won't have broken links.

I guess Drupal uses $site_url to do this, so I'm not going to have issues.. but I just want to be sure :)


share|improve this question

migrated from Aug 22 '10 at 19:52

This question came from our site for professional and enthusiast programmers.

Do you really need to root directory to make the site available as – kiamlaluno Aug 22 '10 at 19:52
do I not need it ? – Patrick Aug 23 '10 at 7:23
up vote 0 down vote accepted

Like Eaton says, you won't have any trouble with stuf uploaded through CCK fields, however, if you have stuf like images in the body of content, these will probably be broken when you change the root folder of drupal.

If you find such cases, I suggest you do a "search and replace" for strings that go like "/drupal/*" and the like, and change them for /, through out the db.

share|improve this answer

You'll only be tripped up if you've left hard-coded URLs somewhere in your site. Those can sneak into strange places -- for example, if someone has posted content with hard-coded links.

As you suspect, though, Drupal itself is fine with the directory being shifted around.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.