1. Michael
    June 8, 2012 @ 8:49 pm

    I need to go a little further beyond just having separate folders.

    Is there a way to configure WordPress to use a remote location for storing all files (e.g. images, HTML, etc)?

    The server that hosts my WordPress site is a virtual machine template that won’t persist content. Any new images or other content I create is lost anytime the server reboots and the original version of WordPress is re-deployed. I do have the ability to modify the instance of WordPress which is installed on the virtual machine image but any changes I make will be static (i.e. all dynamic content is still lost every time the machine reboots).

    I would like to configure this hosted version of WordPress to point to some other location for storing all content. Does anyone know how to do this?

    I have a UNC name for a persistent file store that I could use.

  2. Emily Carpenter
    June 9, 2012 @ 12:04 am

    Michael, Your images/files can be stored anywhere as long as you use an absolute path. For example: http://www.your-website.com/images/great-pic.jpg.

    Or, it might be time to get a new web host! Even if your current host is “Free”, what is it costing you in time to do rework each time your changes are lost? I like to use BlueHost http://www.bluehost.com/track/whizbangweb (affiliate link). You pay a yearly fee, and get more storage/bandwidth than most people need, plus you can host multiple domains, so if you’re running more than one website, you only pay for one hosting account. They also give you one free domain name for as long as you host with them.

  3. Michael
    June 9, 2012 @ 3:25 am

    My goal is to configure WordPress to store ALL dynamically created files (e.g. posts, pictures, etc) on a remote location from the server that is hosting WordPress. If I can do that then I would never lose anything when the server rebooted. I already have the site set to point to a remote MySQL database that persists information. Now I just need to figure out how to do the same thing with the dynamic content.

  4. Emily Carpenter
    June 13, 2012 @ 12:35 am

    Michael, as with anything, if you can think of it, someone else has probably already done it. Try checking the LinkedIn WordPress group, and maybe post your question there.

  5. Edward Beckett
    June 28, 2012 @ 8:51 pm

    This is cool … but it’s just as easy to use rewrite base to specify perms in the blog directory

    Options -Indexes -Multiviews +FollowSymLinks

    RewriteEngine On
    RewriteBase /blog/

    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]

  6. Gcamphotos
    November 13, 2012 @ 4:49 pm

    Thank you sooooooooooooooo much you are my savior!!!!! trying to follow wordpress instructions and others i almost lost all my hair from pulling it out, lol. Thank you so much.

  7. Emily Carpenter
    November 13, 2012 @ 7:26 pm

    After struggling through the WP instructions so many times, I wanted to spare others from the same pain. So glad I could help out!

  8. Katherine Elizabeth2012
    January 5, 2013 @ 2:42 am

    I am SO thankful for this post. Thank you for being the only solution I could find on the web and for being so detailed. Your solution worked like a charm!

  9. Guest
    February 24, 2014 @ 4:33 am

    Aaaargh… didn’t work. Internal server error when I go to the site. Only thing I can think is that my index.php file had a different line from what is specified here… I had

    require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

    rather than


    any ideas?

  10. Emily Carpenter
    February 24, 2014 @ 2:35 pm

    Not sure why it would be different. Is this a multisite install?

  11. Navjot
    July 5, 2014 @ 7:39 pm

    thank you

  12. Zalia
    October 16, 2014 @ 1:29 am

    Thanks very much. For some reason it didn’t work first time around (got a blank page instead), but at that time I also got a 500 error from some other plugin which is now resolved and tried your instructions again and they worked flawlessly. Ta

  13. Malcolm
    October 6, 2020 @ 12:32 am

    Eight years later and this post is still giving – thank you.

    The usual case for me is also to install WP in its own folder, look at the official WP instructions for fixing the URL/permalinks and curse them for writing it so badly.

    I was going to write my own version of the steps for future reference but found this first. Bookmarked! 🙂

  14. Emily Carpenter
    November 1, 2020 @ 4:29 pm

    I still use this for every site I build. Glad to hear that it’s helping you too!

Leave a Reply

Your email address will not be published. Required fields are marked *