Support » Networking WordPress » Can the default uploads location of /files/ be changed?

  • Hi,

    We are trying to migrate our site ( to WP. We need a multisite configuration, and followed instructions to do so.

    We created an .htaccess (see code below) which causes 404 in the following directory This directory happens to be essential for us.

    The rest of the two sites were working fine. Our host provider (iPage) says it’s caused by the .htaccess file in root. But they wont debug our code.

    In the installation forum stvwlf explained to me that WP uses a directory called /files and this causes the problem.

    Any ideas?

    Thanks in advance,

    Here is the code:

    DirectoryIndex home.html index.html index.php

    ErrorDocument 403 /404.php
    ErrorDocument 404 /404.php

    Options +FollowSymlinks

    #Weebly Additions Start
    #Weebly Additions End
    RewriteCond %{SERVER_PORT} !^443$
    rewriterule ^(.*)$$1 [r=301,nc]

    # 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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can the default uploads location of /files/ be changed?’ is closed to new replies.