• Resolved drake2k

    (@drake2k)


    I have a brand new host and a brand new install of WordPress. I have also enabled multisite/domain support.
    WordPress is installed in the root of my domain. https://www.cp-fc.com
    I have a couple of different subdomains setup that point to the root folder as per the instructions on another thread. WordPress and the subdomains appear to be working properly.

    However: I have a php script that runs in another subfolder not related to WordPress at all. /roster When In invoke this script, none of the png images appear. File permissions are 755.

    Also: I have another completely different domain name that points to a subdirectory /drake. I have a simple html file that displays one simple image. If that image is a png, it will not show up. If that image is a jpg it does just fine.

    If I type the full address of a png image I get the following error. The image at “https://www.cp-fc.com/drake/fisher.png” cannot be displayed because it contains errors.
    OR
    The image at “https://www.drakeblackwell.com/fisher.png” cannot be displayed because it contains errors.

    When I look at the source of the error, the error itself IS an image.

    If I use a jpg however, it works fine.

    I have NO .htaccess files in either /roster or /drake folders and my root .htaccess file is as follows:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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]

    Has WordPress taken over all directories of my web folder? If so, is there a way to fix this, or should I blow out wp all together and re-install it under a sub folder such as /wp?

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

    (@ipstenu)

    ?????? Advisor and Activist

    No.

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d

    That, literally, says “IF there isn’t a file or a folder with that name, continue with our WP rules.”

    If that image is a png, it will not show up. If that image is a jpg it does just fine.

    That smells like a .htaccess error. Quick test though. Rename .htaccess to .htaccess-off and see if the same problem exists.

    Thread Starter drake2k

    (@drake2k)

    Thank you for the response Mika. If was your help on another thread that proved to be extremely valuable in an unrelated issue.

    I changed .htaccess to .htaccess-off but it did not seem to resolve anything. https://www.cp-fc.com/drake/fisher.png & https://www.drakeblackwell.com/fisher.png both give the same results. The error that in the form of an image. It’s actually a very pleasant error page. Easy on the old eyes. ??

    I did spell everything correct in that .htaccess right? I typed it all out because a guide stated not to cut and paste.

    Thread Starter drake2k

    (@drake2k)

    Update.

    I blew out the entire WordPress install. I removed all the files, the .htaccess file, the database, the whole nine yards.

    The problem persists. This is definitely NOT an issue with WordPress. Thank you for your help with this. Time to go re-install (don’t worry, I more fun doing stuff like that then I do actually building the sites themselves.)

    ~Drake

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is .htaccess borking up subfolders?’ is closed to new replies.