Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • now all my images are not working on my main site. here’s what my .htaccess file looks like:

    <IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RedirectMatch 301 /wp-content/uploads/(.*)$ https://www.moxietoday.com/files/$1
    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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>

    my upload path in the super admin > sites > edit is ….

    wp-content/blogs.dir/1/files/

    Any help is much appreciated.

    Then put this ABOVE that WordPress block in your .htaccess:
    RedirectMatch 301 /wp-content/uploads/(.*)$ https://www.mysite.org/files/$1

    above you say to insert…https://www.mysite.org/files/$1 above the wordpress block in htaccess. what is “the wordpress block”. also, where you say “mysite.org”, would i insert moxietoday.com (my website domain name is moxietoday.com)?

    I am sorry for asking so many questions, I am just trying to learn.

    I found another one of your posts from about a month ago and you said to use this:

    <IfModule mod_rewrite.c>
    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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>

    I used the above and I also checked my upload path like you said. I changed that path to the same path as my main blog. Now the pictures are loading perfectly. Should every new site that is created on my network have the same URL path as my main site (…/wpcontent/uploads) ?

    I love WordPress! Honestly, I love it. And I love the people that are involved with WordPress. A real community. Thank you for responding to my post just 2 hours after I made it. I am interested in developing my own theme, any suggestions for reading/researching tips?

    Dan

    Hey everyone, I am having the same problem when I switched my single user blog over to WordPress 3.0

    I have 6 additional blogs being set up on the network as we speak, however we are unable to load any images to the posts. I went into my htaccess file which is in my htdocs root folder. I replaced the text that was there with the text Ipsentu posted above:

    # BEGIN WordPress

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [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]
    # END WordPress

    After doing this I still am unable to load images into the post window. When we do upload an image it appears as broken. PLEASE HELP!

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