[closed] Can the default uploads location of /files/ be changed? (2 posts)

  1. acollantes
    Posted 3 years ago #


    We are trying to migrate our site (www.iurisonline.com) 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 http://www.iurisonline.com/files/ 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 ^(.*)$ https://www.iurisonline.com/$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

Topic Closed

This topic has been closed to new replies.

About this Topic