• So I updated to 4.2.2 and need some assistance. My main site is working fabulously. No errors. All my other sites in the multisite have had issues all morning. First I got redirect for the dashboards and individual pages. I thought hmm I’ll just do a manual install. Didn’t fix it. So I did some searching and found htaccess maybe the cause. So I used this code.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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>
    
    # END WordPress

    I am now able to get to the dashboard and my sites are up but now get a 404 error on my images?

    Image is on the server:
    https://www.tintpress.com/wp-content/uploads/2015/05/IMG_0050.jpg

    Now in multisite the media folder should be files? Isn’t that what it was? This is what I have in my posts.
    https://tintpress.com/thetintlife/files/2015/05/IMG_0050.jpg

    So did my manual install of wordpress anger the multisite setup. Any fresh eyes would be lovely because I’ve stared at it too long.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter egleason

    (@egleason)

    Nevermind… Got my .htaccess all squared away. I knew as soon as I posted I would figure it out.

    Just had to use the right version.

    # 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

    Thread Starter egleason

    (@egleason)

    Just reopened this… So my issue is based in htaccess

    I update the code to the correct code. Change permissions to 444.
    I hit refresh and it reverts to the old code.

    I’ve disabled all the plugins and have just the basic wordpress themes on the site now.

    What is causing the htaccess code to revert back to the old code.

    Thread Starter egleason

    (@egleason)

    I deleted the htaccess had a cup of coffee and reuploaded it and it works? I’m not confident that it’s not going to revert again. And I’ld like to know why to prevent it happening again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘404 Error on Images’ is closed to new replies.