Viewing 15 replies - 16 through 30 (of 63 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I think you want this:

    RewriteRule ^rappenings/files/2010/06/Photo-3-copy.jpg https://reconstruct.rappahannock.edu/wp-content/blogs.dir/25/files/2010/06/Photo-3-copy.jpg

    Thread Starter greene.md

    (@greenemd)

    Thanks Ipstenu, I tested

    RewriteRule ^rappenings/files/2010/06/Photo-3-copy.jpg https://reconstruct.rappahannock.edu/wp-content/blogs.dir/25/files/2010/06/Photo-3-copy.jpg and

    RewriteRule ^files/2010/06/Photo-3-copy.jpg https://reconstruct.rappahannock.edu/wp-content/blogs.dir/25/files/2010/06/Photo-3-copy.jpg

    Both gave me a 404, which is different than what the wordpress standard rewrite rule does (no error, the image just doesn’t show up). I’m beginning to think that Apache is not capable of rewriting these images at all. I am not a server admin but had to setup Apache, MySql, Php myself. Is there something I could have missed outside of this .htaccess setup?

    Apache can do it, it’s Apache on Windows that is the issue. ??

    Are you absolutely sure you installed the mod_rewrite module? If so, you may need to specify in the vhost file that it needs to read the htaccess file directly.

    Thread Starter greene.md

    (@greenemd)

    Well… I assumed mod_rewrite was working because ‘pretty permalinks’ were working. At this point I’m willing to try anything aside from scraping my database again. What would I need in my vhost file to make it read the .htaccess? My vhost looks like this

    ServerName reconstruct.rappahannock.edu
    NameVirtualHost reconstruct.rappahannock.edu
    <VirtualHost *>
        DocumentRoot C:/Server/www
        ServerName reconstruct.rappahannock.edu
    </VirtualHost>

    The C:/Server/www folder is where my .htaccess lives

    AllowOverride FileInfo Options

    Thread Starter greene.md

    (@greenemd)

    Andrea when I try to add that line of code to my vhost, Apache can not restart. Apache error log says Allow Override not allowed here, that could be due to something I changed in the http.conf file but I’m not sure what it might be. VHost looks like this.

    ServerName reconstruct.rappahannock.edu
    NameVirtualHost reconstruct.rappahannock.edu
    <VirtualHost *>
        DocumentRoot C:/Server/www
        ServerName reconstruct.rappahannock.edu
        AllowOverride FileInfo Options
    </VirtualHost>
    Thread Starter greene.md

    (@greenemd)

    I have uploaded a copy of my httpd.conf file here, if that helps anyone. I can upload other files there as well if you want to look at them. My network admin is trying to open up the firewall to allow web traffic in but that might take a few hours. Again, thank you everyone who is thinking about a solution to my problem.

    https://michaelgreene2.com/httpd.conf

    Thread Starter greene.md

    (@greenemd)

    Thank you for the link Andrea, I learned a lot from that. My problem still stands however. I’m almost convinced it’s not an .htaccess problem at all, i just don’t know where else to look. Hopefully later today or early tomorrow I’ll have an outside IP I can direct you to and maybe that will spark someone’s imagination.

    Greene, I have the same issue… Did you resolve that?

    Thank you in advance.

    Thread Starter greene.md

    (@greenemd)

    ebald, I have not fixed the issue yet. We’re launching at the end of this month and this is a real problem. I’m hoping someone can think of something soon…

    I had sorta the same issue with a standard wp install on localhost using Apache. what I did was right clicked on the folder and run as admin on that folder now i can see all my images and lot more. it is something with the permission in win 7 to server 2008…

    try that….

    Michael

    I might be off on a wild goose chase here … but … can you confirm if you are using subdomain or subdirectory install?

    That is – are you aiming for
    blogname.reconstruct.rappahannock.edu/
    or
    reconstruct.rappahannock.edu/blogname
    ?

    Next look at this sample URL you gave –
    reconstruct.rappahannock.edu/rappenings/files/2010/06/Photo-3-copy.jpg

    Is reconstruct the server machine’s hostname or is it a subdomain of the dot edu?

    Is rappenings a subfolder off the dot edu, or is the blog root?

    If rappenings is the blog root, you cannot do a subdomain install, and ” vhosts ” cannot be set up – it is a reserved function in wp-config.php (or was under WPMU 2.9.2 and earlier – not so sure about 3.0)

    If “reconstruct” is a blog name, then “rappenings” has to be a posts category name, not a sub-blog (because reconstruct is already a subdomain sub-blog, and you cannot have sub-domain and sub-directory sub-blogs in the same install (unless Andrea and Ron have come up with something new and extremely clever)).

    Have to ask this because it confused the heck out of me all the way down the thread.

    Gaz

    Thread Starter greene.md

    (@greenemd)

    Gaz, no problem answering those questions.

    I’m doing a subdirectory install.

    WordPress is in the root folder C:/Server/www and rappenings is simply one of the sub-blogs.

    The hostname is reconstruct.rappahannock.edu (although technically isn’t is a subdomain as well? – side note) which will be changed to https://www.rappahannock.edu in August.

    Rappenings has no physical folder, just the blogs.dir/25 folder wordpress creates.

    Thread Starter greene.md

    (@greenemd)

    I found out some interesting errors with images I wasn’t aware of before. I tried uploading the same image in jpg, gif, png-8, and png-24 format. The jpg just displays the url of the image (my original problem) but all of the other formats display this

    The image “https://reconstruct.rappahannock.edu/rappenings/files/2010/07/zeretul24.png” cannot be displayed, because it contains errors.

    All of the text being displayed is the alt text for the images btw.

    The interesting thing is that none of the images actually have errors, going to https://reconstruct.rappahannock.edu/wp-content/blogs.dir/25/files/2010/07/zeretul24.png shows the image just fine. The same for the .gif, .png-8 formats as well.

Viewing 15 replies - 16 through 30 (of 63 total)
  • The topic ‘New 3.0 install, images not working in subsites’ is closed to new replies.