sandwiches
Member
Posted 11 months ago #
@ipstenu --
Hoping this works, your profile said to just mention you in the forums.
I am having the exact same problem as this poster, only I have a subdomain setup, not a subfolder setup. Did anything get worked out with this issue long-term, is there an available workaround somewhere I can't find, or do you know how I could fix it?
sandwiches
Member
Posted 11 months ago #
It is-- cut and pasted directly from there, no dice.
URLs?
Need to know your main site AND a subsite :)
The very latest will be in *WORDPRESS* itself - not the codex. Go to the Create a network page in your installation. get the latest htaccess rules from THERE.
sandwiches
Member
Posted 11 months ago #
@Andrea -- They're the same.
@Ipstenu -- Here's the main blog, and here's a network blog.
Thanks for helping!
sandwiches
Member
Posted 11 months ago #
Note: on the network blog, I manually linked to the files, so they work, but here's a page that shows the way WordPress produces the images automatically.
sandwiches
Member
Posted 11 months ago #
Sorry, mislinked it!
(Thanks for helping by the way!)
Rock on :)
So here's the broken image link: http://sketcharmstrong.radicalrobot.com/files/IMG_0136-300x225.jpg
The .htaccess translates that to this (That's also a 404 by the way.):
http://sketcharmstrong.radicalrobot.com/wp-includes/ms-files.php?file=IMG_0136-300x225.jpg
In turn THAT should take us to:
http://radicalrobot.com/wp-content/blogs.dir/#/files/IMG_0136-300x225.jpg
Of note, your URL shouldn't be /files/image.jpg, it should be /files/YYYY/MM/image.jpg so you've got some other issues going on here and I'm willing to bet THAT is why the images aren't working.
You COULD sort it via this:
RewriteCond %{HTTP_HOST} ^sketcharmstrong.radicalrobot.com
RewriteRule ^reviews/files/(.*)$ http://sketcharmstrong.radicalrobot.com/wp-content/blogs.dir/2/files/$1 [L,R=301]
Assuming this is blog #2. But that doesn't resolve the fact that you turned off the organizing uploads into folders by date (which you really need).
sandwiches
Member
Posted 11 months ago #
How do I fix that? I never intentionally turned them off (or it was a looong time ago and I've forgotten...).
sandwiches
Member
Posted 11 months ago #
(It was actually on my to-do list to fix that, but I figured it was secondary to this problem. But if they're related, all the better toward figuring it out!)
It's way easier in singlesite than MultiSite to turn 'em on and off.
Admin Dashboard -> Network Admin -> Sites
EDIT the site
Click on the OPTIONS tab.
Look for Uploads Use Yearmonth Folders and set it to 1
That won't fix your already uploaded images, mind you :/
sandwiches
Member
Posted 11 months ago #
I uploaded a new image, and WordPress produces the right URL and they are correctly uploaded to the right folder on the server, the permalink still doesn't work :(
Thanks for helping, again! This must be a headache... I see no good reason why it shouldn't work perfectly :)
sandwiches
Member
Posted 11 months ago #
I just tried that .htaccess code you suggested, both with Yearmonth Folders as "1" and "0" and uploading and inserting a new image both times, and it didn't work either. Also, the site is number 30, so I changed it to 30, still nothing...
I uploaded a new image, and WordPress produces the right URL and they are correctly uploaded to the right folder on the server, the permalink still doesn't work
And WHERE would that be?
sandwiches
Member
Posted 11 months ago #
Here, and it also works http://sketcharmstrong.radicalrobot.com/wp-content/blogs.dir/30/files/2011/06/IMG_0135.jpg">here (I've heard it's not supposed to work like that? I can get any file from any domain I'm using...)
sandwiches
Member
Posted 11 months ago #
No, not http://FTP... I mean like can you get to and edit your httpd.conf file?
If you don't know what that means, it's okay, but you'll need to tell your host "My .htaccess file isn't being read completely. I need AllowOveride set to all, and what are the Options set to?"
sandwiches
Member
Posted 11 months ago #
According to Wikipedia, that's at /etc/httpd/httpd.conf-- I do have an /etc/ folder available but nothing like /httpd/ shows up in there. The support forums say we don't have access to it.
Just sent them a support request-- I'll get back to you when they get to look at it tomorrow.
Thanks!
Actually it's not ALWAYS in etc/httpd.... which is why I said if you didn't know what it was, ask your host ;)
sandwiches
Member
Posted 11 months ago #
They responded:
With respect to your questions, here's what we have:
Options ExecCGI IncludesNOEXEC FollowSymLinks
AllowOverride All
As for your .htaccess file not being read or not read (partially read isn't a possible situation), you'd want to investigate whether or not its permissions and ownership are compatible with what you're trying to do -- this might be helpful for troubleshooting: https://members.nearlyfreespeech.net/support/faq?q=PHPWritingFiles#PHPWritingFiles . We'd also recommend turning on your site's error log in case that can provide any additional clues.
Can they change that to
AllowOverride FileInfo Options
sandwiches
Member
Posted 11 months ago #
That would actually be a more restrictive setting than "AllowOverride All," which already includes both FileInfo and Options. We'd actually suggest that you and/or the person helping you out do a little more research into what you're trying to do and possibly consult other folks with some familiarity with it, to possibly clear up some of the confusion that's getting in your way.
Actually, we've found when one doesn't work the other will. Crazy, but there ya go.
Really this setup relies on the htaccess file changes being read. That's totally server side. Not sure why they don't seem to be able to help you.
Point your host here: http://mathiasbynens.be/notes/apache-allowoverride-all
They are correct in MOST cases, but not ALL.