WordPress.org

Ready to get started?Download WordPress

Forums

Sub-blogs can't read images, even though they're being uploaded (10 posts)

  1. Andrew Jacob Johnson
    Member
    Posted 2 years ago #

    I need help rewriting the URL

    http://my-website.com/wp-content/blogs.dir/sub-blog-id#/files/image-name.jpg

    into

    http://sub-blog.my-website.com/files/image-name.jpg

    I think this involves .htaccess, but I have no idea how to work it. How should I do this?

  2. It's built in and included in the htacces file the network creation panel gives you.

    If your server isn't actually reading that line, then that's a separate issue.

  3. Andrew Jacob Johnson
    Member
    Posted 2 years ago #

    My problem is that all the files are being uploaded for all the sites, but my-website.com/file/image-name.jpg works, whereas any-subdomain.my-website.com/file/image-name.jpg does not, so all image links are broken overall. The default htaccess isn't working-- what can I do then?

  4. Tell your webhost support that the server is not *reading* the htaccess file.

    it's got the right stuff in it. But if the server is not paying attention to it (it's a common enough issue) then changing the rewrite rules won't help.

  5. Andrew Jacob Johnson
    Member
    Posted 2 years ago #

    I spoke with them, and they said that it's not a problem with the server... any ideas, anyone?

  6. Ask them in AllowOverride is set to ALL in your httpd.conf file (or if you can see if yourself, what's that section look like?)

  7. I spoke with them, and they said that it's not a problem with the server...

    then they aren't getting what's wrong. :) And yes - it *is* server-side. Rewriting the rules serves nothing if the file isn't even being read.

    Check: put that htaccess file one folder up. Does it magically work?

  8. Andrew Jacob Johnson
    Member
    Posted 2 years ago #

    The folder it's in now is /public, and the one above that is called /home, and I can't put it into that one.

    @Ipstenu, I couldn't find my httpd.conf file (according to http://en.wikipedia.org/wiki/Httpd.conf it should be in /etc/httpd/httpd.conf, but there's not /httpd folder in /etc.

    I'll try talking with them a little bit more.

  9. Tim Moore
    Moderator
    Posted 2 years ago #

    @sandwiches: the location of httpd.conf depends on the OS you are using. In Ubuntu, it is located under /etc/apache2. The location also depends on your host (if you have one).

  10. Which means ask your webhost about it :)

Topic Closed

This topic has been closed to new replies.

About this Topic