Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com 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 www.mywebsite.com? –  kiamlaluno Aug 22 '10 at 19:52
    
do I not need it ? –  Patrick Aug 23 '10 at 7:23

2 Answers 2

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

 
discard

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.