Viewing 12 replies - 31 through 42 (of 42 total)
  • Thread Starter Chuck

    (@oddclicker)

    I tried the above .htaccess and my site still has the same problems – no images.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    oddclicker – Which .htaccess? You should use this one for subfolders:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?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]
    # END WordPress

    For now, make that your TOTAL .htaccess (remove anything else in there, but back it up first ?? )

    From my earlier post, which you didn’t answer:

    I meant hotlink protection. Hotline protection is what I need when I get phone calls at work…

    Also, are you using a domain mapping plugin or are these separate MU installs?

    You may need to check on your host. I know cPanel can handle hotlink protection on the backend for example.

    As for the domains I want to know if these:

    EXAMPLE – https://cooking.thefrazzledmama.com/files/2010/08/ezmuffins11.jpg
    NO LOAD – https://tbfaa.devsite103.com/files/2010/06/meeting.jpg

    are on the SAME MultiSite Install and, if so, what domain mapping plugin are you using to map them.

    Also: What is the MASTER domain name?

    Thread Starter Chuck

    (@oddclicker)

    The master domain is devsite103.com
    The “example” domain is not mine – I used it from another user who was getting help from you.
    The “no load” one is mine.
    To my knowledge, I am not using hotlink protection. Sorry, I thought I had answered those previous questions.
    I’m not using a domain mapping plugin. I just added tbfaa under sites in super admin as a sub-domain under devsite103.com.

    I tried your suggested htaccess and made a tiny bit of progress. Images load for devsite103.com but do not load for tbfaa.devsite103.com. HOWEVER, now when use the “Add an Image” facility in the editor the image area shows up with an “edit image” button. When I select edit image, I see the image – but it still doesn’t show up on the page.

    You completely forgot to mention you’re on an IIS server. Yes, that *is* important, as they use different rewrite rules.

    I’m not a windows gals, but we do have some threads about it.

    Thread Starter Chuck

    (@oddclicker)

    I didn’t “forget”. I just didn’t know it was significant and didn’t see anyone asking that in the forum discussions I read. Can you point me to one of the threads? Or give the search terms likely to find the thread? Thanks, Chuck

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter Chuck

    (@oddclicker)

    Well, I tried to follow the instructions in the second link but no joy. I’m using sub-domains and the writer seems to be using directories – maybe that’s the reason. I’m going to paste everything I can think of below in the hope that someone will be able to help me through this problem. Of course I’m happy to provide any other information which may be needed to diagnose this issue. I’d sure appreciate help.

    IIS Version 6

    My wp-config.php
    *snipped for security – please do not post passwords – The Mod Team*

    My .htaccess
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule . index.php [L]

    Components from the sub-domain “edit site” panel
    Domain https://tbfaa.devsite103.com
    Siteurl https://tbfaa.devsite103.com
    Home https://tbfaa.devsite103.com/
    Upload path https://devsite103.com/wp-content/blogs.dir/2/files
    Upload URL path https://devsite103.com/wp-content/blogs.dir/blognumber/files
    Fileupload URL https://devsite103.com/wp-content/blogs.dir/blognumber/files

    Note the part in the link where the poster refers to the web.config file.

    This is specific to IIS. This controls the rewrite rules. The rewrite rules control your image links.

    I am having the same issue. So frustrating!

    I am trying to install a mu site and everything works ok except custom backgrounds. If I undersatnd correctly the fault is on web.config file – I am using IIS 7. I do not know to change my web.config file to make the backgrounds work. Can you help ? My web.config file looks like this:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name=”Imported Rule 1″ stopProcessing=”true”>
    <match url=”^(.*/)?files/$” ignoreCase=”false” />
    <action type=”Rewrite” url=”index.php” />
    </rule>
    <rule name=”Imported Rule 2″ stopProcessing=”true”>
    <match url=”^(.*/)?files/(.*)” ignoreCase=”false” />
    <conditions>
    <add input=”{URL}” pattern=”.*wp-content/plugins.*” ignoreCase=”false” negate=”true” />
    </conditions>
    <action type=”Rewrite” url=”wp-content/blogs.php?file={R:2}” appendQueryString=”false” />
    </rule>a
    <rule name=”Imported Rule 3″ stopProcessing=”true”>
    <match url=”^(.+)$” ignoreCase=”false” />
    <conditions>
    <!–# add a trailing slash to /wp-admin–>
    <add input=”{URL}” pattern=”^.*/wp-admin$” ignoreCase=”false” />
    </conditions>
    <action type=”Redirect” redirectType=”Permanent” url=”{R:1}/” />
    </rule>
    <rule name=”Imported Rule 4″ stopProcessing=”true”>
    <match url=”.” ignoreCase=”false” />
    <conditions logicalGrouping=”MatchAny”>
    <add input=”{REQUEST_FILENAME}” matchType=”IsFile” ignoreCase=”false” />
    <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” ignoreCase=”false” />
    </conditions>
    <action type=”None” />
    </rule>
    <rule name=”Imported Rule 5″ stopProcessing=”true”>
    <match url=”^([_0-9a-zA-Z-]+/)?(wp-.*)” ignoreCase=”false” />
    <action type=”Rewrite” url=”{R:2}” />
    </rule>
    <rule name=”Imported Rule 6″ stopProcessing=”true”>
    <match url=”^([_0-9a-zA-Z-]+/)?(.*\.php)$” ignoreCase=”false” />
    <action type=”Rewrite” url=”{R:2}” />
    </rule>
    <rule name=”Imported Rule 7″ stopProcessing=”true”>
    <match url=”.” ignoreCase=”false” />
    <action type=”Rewrite” url=”index.php” />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

    Crap. .htaccess fiels are unreadable on my Mac and the workaround to get it viewable is painful.

    I am having the same problem. Fotos load fine, but are not viewable.

    I have Wp MultiSite with BuddyPress with subdomains.

    NSFW Images get uploaded to https://subboyed.lockedndenied.com/files/2011/01/IMG_0560-300×300.jpg but if I open “Media” and click “Edit Image” I can see the image.

    So, question … If I look at the provided .htaccess fix above and replace it how is this going to affect the rest of the site? Am I gonna bomb my site? I’ve invested sooo much time on this site I don’t want to lose it by mucking about.

    Thanks everyone!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    TheAlchemist – Grab TextWrangler. It’s free and it can totally read .htaccess files.

    Also make a new post ?? This one is months old and it’s better to start anew at this point.

Viewing 12 replies - 31 through 42 (of 42 total)
  • The topic ‘Images are not uploading into correct file’ is closed to new replies.