Forum Replies Created

Viewing 15 replies - 31 through 45 (of 47 total)
  • 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.

    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)

    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)

    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

    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?

    Thread Starter greene.md

    (@greenemd)

    I’m trying to experiment with a specific Rewrite Rule just to see if I can get an image url to rewrite at all. Does anyone know how to write a rule to take
    https://reconstruct.rappahannock.edu/wp-content/blogs.dir/25/files/2010/06/Photo-3-copy.jpg and rewrite it to https://reconstruct.rappahannock.edu/rappenings/files/2010/06/Photo-3-copy.jpg

    I tried using ReWriteRule ^files/2010/06/Photo-3-copy.jpg wp-content/blogs.dir/25/files/2010/06/Photo-3-copy.jpg but that didn’t work.

    Thread Starter greene.md

    (@greenemd)

    enjaytee, I am using Apache not IIS on Windows Server. Sorry, I should have mentioned that in my previous post. Thank you though.

    Thread Starter greene.md

    (@greenemd)

    I’ve tried each of these Rewrite rules and none of them have worked.

    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$2 [L]

    I’ve also tried switching the file=$2 to file=$1 on each of the rules as well. My background is in design so a lot of this is new and some still doesn’t make sense. Any other tricks you can think of to play around with?

    Thread Starter greene.md

    (@greenemd)

    jpg and jpeg are listed under upload file types

    Thread Starter greene.md

    (@greenemd)

    It’s a Windows server 2008 machine that I remote into so no. I had originally set everything to localhost but when we tried to switch to a normal domain name I had a bunch of crazy errors so I scrapped everything and did a fresh install using the reconstruct.rappahannock.edu domain name. Everything has worked fine except this images in sub-sites issue.

    Thread Starter greene.md

    (@greenemd)

    Here is my .htaccess file

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    #RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    RewriteRule ^(.*/)?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).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    The first uploads rewrite rules is the original WP told me to use and the second is the one riddhishshah recommended. Since this was a fresh install I don’t believe I’ve ever used blogs.php in any of my .htaccess or http.conf rules.

    Thread Starter greene.md

    (@greenemd)

    riddhishshah, thanks for the tip. Unfortunately I still can’t get uploaded images in sub-sites to show up. What do you mean by

    did you check your htaccess as well as .htaccess

    I’ve been checking my .htaccess file and it appears correct, I don’t have a htaccess file if that’s what you mean.

    Thread Starter greene.md

    (@greenemd)

    I just tried uploading a PDF and inserting that into a post. Worked fine, server redirected the link and the browser downloaded the file. So why won’t images work?

    Thread Starter greene.md

    (@greenemd)

    Fixed the issue of the site not showing up. Theme error, images still not working though.

    Thread Starter greene.md

    (@greenemd)

    Now the sub-site I’ve been trying this in /rappenings won’t appear at all. But the admin interface still works, what it going on here? Now I’m completely confused.

Viewing 15 replies - 31 through 45 (of 47 total)