Title: Media files upload
Last modified: August 19, 2016

---

# Media files upload

 *  Resolved [jkselly](https://wordpress.org/support/users/jkselly/)
 * (@jkselly)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/media-files-upload/)
 * Hi,
    When i upload music files using the library – add new – link in my multisite(
   sub-directory) site, it states that the file url is [http://www.mydomain/sample1-photoslide/files/2011/03/11-Beautiful.mp3](http://www.mydomain/sample1-photoslide/files/2011/03/11-Beautiful.mp3)
   When i copy and paste this url into my music player nothing plays as the file
   as actually saved in [http://www.mydomain/wp-content/blogs.dir/3/files/2011/03/11-Beautiful.mp3](http://www.mydomain/wp-content/blogs.dir/3/files/2011/03/11-Beautiful.mp3)
   If i manually change the file name in the music player it links and plays, but
   this is quite a faff! Could you tell me how to re-direct where the files save?
   Or why it automatically states the sub-directory file when one does exist?

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 3 months ago](https://wordpress.org/support/topic/media-files-upload/#post-1984260)
 * It’s supposed to be in files. That’s normal.
 * What’s in your .htaccess file? That’s what should be redirecting everything.
 *  Thread Starter [jkselly](https://wordpress.org/support/users/jkselly/)
 * (@jkselly)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/media-files-upload/#post-1984293)
 * But why does it say it is automatically saved it to a file that does not exist?
   
   htaccess file is as follows.
 * # Switch rewrite engine off in case this was installed under HostPay.
    RewriteEngine
   Off
 * SetEnv DEFAULT_PHP_VERSION 5
 * DirectoryIndex index.cgi index.php
 * # BEGIN WordPress
 * RewriteEngine On
    RewriteBase / RewriteRule ^index\.php$ – [L]
 * # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.
   php?file=$20 [L]
 * # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$
   $1wp-admin/ [R=301,L]
 * RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d RewriteRule
   ^ – [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
   RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] 
   php_value memory_limit 64M php_value upload_max_filesize 24M php_value post_max_size
   24M php_value session.gc_maxlifetime 600
 * # END WordPress
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 3 months ago](https://wordpress.org/support/topic/media-files-upload/#post-1984340)
 * It says files because that is a _virtual_ directory.
 * And your .htaccess has typos.
 *     ```
       DirectoryIndex index.cgi index.php
   
       # PHP Stuff
       SetEnv DEFAULT_PHP_VERSION 5
       php_value memory_limit 64M
       php_value upload_max_filesize 24M
       php_value post_max_size 24M
       php_value session.gc_maxlifetime 600
   
       # BEGIN WordPress
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
   
       # uploaded files
       RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
   
       # add a trailing slash to /wp-admin
       RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
   
       RewriteCond %{REQUEST_FILENAME} -f [OR]
       RewriteCond %{REQUEST_FILENAME} -d
       RewriteRule ^ - [L]
       RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
       RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
       RewriteRule . index.php [L]
       # END WordPress
       ```
   
 * FWIW, you had
    `RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.
   php?file=$20` instead of `RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/
   ms-files.php?file=$2`
 * And that _specific_ line is what tells WordPress ‘Oh, the files directory is 
   special!’ 🙂
 *  Thread Starter [jkselly](https://wordpress.org/support/users/jkselly/)
 * (@jkselly)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/media-files-upload/#post-1984492)
 * Great. Thanks for you help.

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

The topic ‘Media files upload’ is closed to new replies.

## Tags

 * [media upload](https://wordpress.org/support/topic-tag/media-upload/)
 * [network](https://wordpress.org/support/topic-tag/network/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 4 replies
 * 2 participants
 * Last reply from: [jkselly](https://wordpress.org/support/users/jkselly/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/media-files-upload/#post-1984492)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
