Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

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

My website is running on Windows and it sits on drive C:/, however I'd like to keep all my files on drive D:/. How can I do it? I know that I can move the whole site to drive D:/ but I was wondering if it's achievable at all.

share|improve this question
up vote 7 down vote accepted

On linux, you could create a symlink to the other folder, or mount it over NFS etc..

On Windows you can actually create a symlink as well.

Something like this should work:

# Open a windows terminal and
mklink /J "C:\Webroot\Drupal\Mysite\sites\default\files" "D:\Data\Drupal\Mysite\"

That should create a hard link connecting the files folder across the two drives, with the data being stored on D:

More info:

share|improve this answer
Thanks David. I'm trying to reproduce this on my local and I get Cannot create a file when that file already exists. Can you please tell me what does it mean? – Vlad Stratulat Dec 12 '13 at 10:26
You might need to rename the current files folder first, then create the symlink. After that copy / move the files back into the new linked folder. – David Thomas Dec 12 '13 at 10:31
Thanks a lot, David! – Vlad Stratulat Dec 12 '13 at 10:39

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.