0

I've drupal installed in www.mywebsite.com/drupal

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

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 :)

thanks

  • Do you really need to root directory to make the site available as www.mywebsite.com? – kiamlaluno Aug 22 '10 at 19:52
  • do I not need it ? – aneuryzm Aug 23 '10 at 7:23
0

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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