Title: Upload Directory &#8211; Looking at Root
Last modified: August 21, 2016

---

# Upload Directory – Looking at Root

 *  [Ramabyte](https://wordpress.org/support/users/ramabyte/)
 * (@ramabyte)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/upload-directory-looking-at-root/)
 * Hello all,
 * I’m using a plugin to zip up my website into a static html. Whenever I get the
   archive this creates it gives me a folders that go all the way up to the root
   such as this: “
    \statichtml\Inetpub\Test-Public\wp-content\uploads\20142\statichtml”
 * I only want the archive to start at the last statichtml. Here’s the code for 
   where it’s looking:
 * $uploadDir = wp_upload_dir();
    $exporter = wp_get_current_user(); $archiveName
   = $uploadDir[‘path’] . ‘/’ . self::HOOK; $archiveDir = $archiveName . ‘/’; if(!
   file_exists($archiveDir)) { wp_mkdir_p($archiveDir); }
 * Any clues on what to change within the plugin or where in the WordPress configuration
   I need to tweak a setting?

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

 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/upload-directory-looking-at-root/#post-4571284)
 * What’s the plugin?
 *  Thread Starter [Ramabyte](https://wordpress.org/support/users/ramabyte/)
 * (@ramabyte)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/upload-directory-looking-at-root/#post-4571287)
 * WP-Static HTML Plugin. I tried emailing the guy who wrote it a week ago and have
   postedo n his plugin forum.
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/upload-directory-looking-at-root/#post-4571291)
 * A quick look at the [plugin page](http://wordpress.org/plugins/static-html-output-plugin)
   shows a screenshot with a reference to a base URL. Did you try configuring that?
 *  Thread Starter [Ramabyte](https://wordpress.org/support/users/ramabyte/)
 * (@ramabyte)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/upload-directory-looking-at-root/#post-4571292)
 * Thats just to put what the base URL of where the zip files will eventually end
   up such as [http://www.test.com](http://www.test.com)

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

The topic ‘Upload Directory – Looking at Root’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Ramabyte](https://wordpress.org/support/users/ramabyte/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/upload-directory-looking-at-root/#post-4571292)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
