Title: uploads folder outside WP root?
Last modified: August 19, 2016

---

# uploads folder outside WP root?

 *  [beku76](https://wordpress.org/support/users/beku76/)
 * (@beku76)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/)
 * hi,
    is there a way to change the uploads folder to one outside the wordpress
   installation folder?
 * > from:
   >  [http://www.domain.com/wordpress/wp-content/uploads](http://www.domain.com/wordpress/wp-content/uploads)
   > to:
   >  [http://www.domain.com/media/uploads](http://www.domain.com/media/uploads)
 * > **default:**
   >  domain -wordpress –wp-content —uploads
 * > **I need:**
   >  domain -media –uploads -wordpress …
 * I tried to change the option in the settings, but I did not succeed 🙁
 * thanks for your help

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [haochi](https://wordpress.org/support/users/haochi/)
 * (@haochi)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731264)
 * I am not sure if this will work (theoretically, it should) but don’t feel like
   trying it on my blog:
    Settings -> Miscellaneous -> Store uploads in this folder
   => ‘../media/uploads’ if /media and /wordpress are on the same directory.
 *  Thread Starter [beku76](https://wordpress.org/support/users/beku76/)
 * (@beku76)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731276)
 * thanks for the hint,
    but it doesn’t work 🙁
 * using this suggestion, WordPress creates a folder named “..” under WordPress 
   directory
 * > **like this**:
   >  domain -wordpress –.. —media —-uploads
 *  [haochi](https://wordpress.org/support/users/haochi/)
 * (@haochi)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731281)
 * Oops, sorry, it should’ve been ‘/../media/uploads’, give it one more try. (Turns
   out that I can’t upload files on my WP, doesn’t matter to me thought because 
   I use FTP to upload files.)
 *  [chriskalani](https://wordpress.org/support/users/chriskalani/)
 * (@chriskalani)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731440)
 * I have been trying to figure this out too. It was easy to do before 2.5… I posted
   the solution here: [http://chriskalani.com/archive/upload-outside-of-the-wordpress-directory/](http://chriskalani.com/archive/upload-outside-of-the-wordpress-directory/)
 * But that no longer works… 🙁 I really need to find a solution.
 *  Thread Starter [beku76](https://wordpress.org/support/users/beku76/)
 * (@beku76)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731445)
 * finally it worked for me,
    the links inside the posts look like:
 * [http://www.mydomain.com/wordpress/](http://www.mydomain.com/wordpress/)../media/
   uploads/photo1.jpg
 * **but,**
    The image is stored at: [http://www.mydomain.com/media/uploads/photo1.jpg](http://www.mydomain.com/media/uploads/photo1.jpg)
 * I found that the browsers correct this by default.
    they know that /../ means-
   1 level Try it yourself, with any image found in google like this: [http://images.pingmag.jp/images/title/wordpresstitle.jpg](http://images.pingmag.jp/images/title/wordpresstitle.jpg)
 * now, modify the url to:
    [http://images.pingmag.jp/whatever/](http://images.pingmag.jp/whatever/)../
   images/title/wordpresstitle.jpg and copy it to the browser again, voila! it goes
   to the original one.
 *  [creativeworldstudio](https://wordpress.org/support/users/creativeworldstudio/)
 * (@creativeworldstudio)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731480)
 * I’m trying to move the default folder outside of the wordpress/ install directory
   and into the / root of the site too. Any tips on how this can be done??
 * [@beku76](https://wordpress.org/support/users/beku76/) – can you explain your
   solution more please?
 *  [creativeworldstudio](https://wordpress.org/support/users/creativeworldstudio/)
 * (@creativeworldstudio)
 * [18 years ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731494)
 * anyone out there have a solution for this?
 *  [Crochetville Donna](https://wordpress.org/support/users/yarntomato/)
 * (@yarntomato)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731502)
 * I have found the solution for this.
 * **Settings -> Miscellaneous**
    Do both of the following:
 * **Store uploads in this folder ->** absolute path to folder you want to use
    
   Example: /home/user/public_html/images
 * **Full URL path to files ->** actual URL of folder you want to use
    Example: 
   [http://www.example.com/images](http://www.example.com/images)
 * Note: As shown in the examples above, do not use a trailing slash.
 * **How to find your absolute path:**
    Using a text editor (such as Notepad), copy
   and paste the following code, and save it as path.php
 *     ```
       <?php
       $p = getcwd();
       echo $p;
       ?>
       ```
   
 * Upload path.php to the folder you want to use, then open it in a web browser (
   example: [http://www.example.com/images/path.php](http://www.example.com/images/path.php)).
   It will display your absolute path.
 *  [creativeworldstudio](https://wordpress.org/support/users/creativeworldstudio/)
 * (@creativeworldstudio)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731507)
 * [@yarntomato](https://wordpress.org/support/users/yarntomato/)
 * **THANK YOU!!!** Your solution worked perfectly. Many thanks!
 *  [chriskalani](https://wordpress.org/support/users/chriskalani/)
 * (@chriskalani)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731509)
 * Awesome! Works great for 2.5+
 *  [stereosushi](https://wordpress.org/support/users/stereosushi/)
 * (@stereosushi)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731551)
 * Hello, old topic but i searched this on google and found.
    I tried to change 
   the path and url and also copied my old images to new folder but its funny that
   images on gallery inside my posts sits on the new directory, others not. i dont
   know why
 *  [elvanja](https://wordpress.org/support/users/elvanja/)
 * (@elvanja)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731552)
 * Hi!
    Any ideas about placing upload folder on another server?
 * Namely, I tried defining upload folder location as seen from media server (the
   other one, using path.php), but although the URL is right and visible from WordPress
   server, the only thing I get is just another folder in WP root and that of course
   is not correct.
 * I would actually need for WP to upload files to this other server and use them
   in posts like they were on WP side of the story.
 * Any help appreciated!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘uploads folder outside WP root?’ is closed to new replies.

## Tags

 * [folder](https://wordpress.org/support/topic-tag/folder/)
 * [root](https://wordpress.org/support/topic-tag/root/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 12 replies
 * 7 participants
 * Last reply from: [elvanja](https://wordpress.org/support/users/elvanja/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/uploads-folder-outside-wp-root/#post-731552)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
