• Resolved mikehuangsd

    (@mikehuangsd)


    Hello – I have crawled through the other posts on this exact topic and have not been able to crack my problem.

    I have wordpress 3.2.1 running, with multisite subfolders enabled. My main site and everything on it works. On my subfolder sites, when I upload images into my posts, the file goes up to the server, but wordpress can’t subsequently find them.

    As an example, here is the path that WordPress gives me to a newly uploaded file that does not work:
    https://chhs.sdsu.edu/testtrash/files/2011/07/clapp-sm.jpg

    Here is the actual path where the file uploaded to that does work:
    https://chhs.sdsu.edu/wp-content/blogs.dir/6/files/2011/07/clapp-sm.jpg

    My problem clearly has to do with the rewriting accomplished by the htaccess file, and other posters have resolved this same problem by fixing their .htaccess file.

    My .htaccess file appears to be correct (listed below):

    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]

    I’m at a loss – Any ideas?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Most likely is that your httpd.conf isn’t reading that .htaccess. Check with your host that AllowOverride is set to ‘All’

    Thread Starter mikehuangsd

    (@mikehuangsd)

    OK update. I just did a clean install of wordpress multisite into a separate account on the same web server. I installed the same themes, and the same plugins. I used the same htaccess file and did everything else the same that I could think of.

    Uploading pictures to the new test site, and all it’s subdirectory subsites, works just fine.

    If the same htaccess file works right for the new account on the same web server, that means it’s not a httpd.conf problem, right?

    If the same htaccess file works right for the new account on the same web server, that means it’s not a httpd.conf problem, right?

    No, it’s proof it *is* a httpd.conf file issue.

    That file control what happens, and what you’re allowed to do, in each web account and folder on the server.

    Thread Starter mikehuangsd

    (@mikehuangsd)

    ok thank you – I will ask the server admin about the httpd.conf file and make sure AllowOverride is set to All.

    Unfortunately he’s gone home for the night – I will check back in tomorrow.

    Same problem over here. Plus in the admin area the “new post” page doesn’t display the text input field (it does however display the post title input field), and the admin bar is not shown properly, i.e. instead of horizontally at the top of the page it is shown vertically below everything.

    Moreover, images added directly in PageLines (theme) do display.

    Is this the same problem, or is it something else?

    @fritfeger it’s something else for you. can you start a new thread? just so we can keep it all straight?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    And please stop posting all over in everyone else’s threads ?? You have a LOT of issues with your setup, so it would help us if you just made a topic detailing what’s up.

    Thread Starter mikehuangsd

    (@mikehuangsd)

    I’m the original poster – Just wanted to update everyone – It wasn’t a problem with AllowOverride in this case. My web server administrator has that set to ‘All’ by default for all accounts on his web server.

    The issue was due to the fact that his server is a pretty complicated setup. He’s apparently got a front-end server, a back-end server, a proxy, and even HTTPS and HTTP run off of different machines somehow (clearly I don’t really understand his setup). But what he told me was that to get WordPress with multisite enabled to run correctly, he has to put in a special rule to tell his proxy not to try to interpret URLs, and to pass those URLs as-is back to the real server. Or something. Anyway – he’s now done that, and everything works!

    Thanks for all your help. You can close this thread.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Heh, thanks for coming back. That’s a pretty 1-off resolution, but it’s good to know!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘multisite subfolder install – images not displaying in subfolder sites’ is closed to new replies.