Media library uploads are not at designated url

The URL that I get when I add a new medianfile( picture for example) is not at the link it gives me.

Such as the image found in this article.

htt p://testimonyjournal.com/news-and-updates/japan’s-emperor-encourages-his-tragedy-stricken-nation-to-move-on/

  • Barry
    • DEV MAN’s Mascot

    Looks like your htaccess might not be set up properly, or the permissions on your files are wrong.

    Can you have a look on your server and see where the file actually is (probably in blogs.dir/1/) and also paste up what your htaccess file contains.

  • Timothy
    • Chief Pigeon

    the .htaccess file is located in your web root so /www/ or /public_html/ Its where all your WP files are uploaded to.

    If you can’t see it then its one of two reasons, its not there (simple I know) or your FTP client is not set up to see the file type, .htaccess is a usually a hidden file.

    Which FTP program are you using and which system?

  • Timothy
    • Chief Pigeon

    I had to laugh when I looked at that App on the Apple website:

    http://itunes.apple.com/us/app/istorage-hd-file-manager-document/id379870459?mt=8

    You must be at least 17 years old to download this app.

    Frequent/Intense Horror/Fear Themes

    Frequent/Intense Alcohol, Tobacco, or Drug Use or References

    Frequent/Intense Profanity or Crude Humor

    Frequent/Intense Sexual Content or Nudity

    Frequent/Intense Mature/Suggestive Themes

    Frequent/Intense Cartoon or Fantasy Violence

    Frequent/Intense Simulated Gambling

    Frequent/Intense Realistic Violence

    Something going on in that App which n other FTP has? lol

    Sadly one thing I notice about iBone and iPad developers and even some Mac program developers is they keep their websites real simple and in doing so avoid the use of forums and support, they offer basic FAQs at best most of the time. So sadly I couldn't find information on it, if it had been a free App or had a lite version I would have downloaded and found out.

    Anyway…. So cPanel, your using the "File Manager", yeah?

    You should see something like in my screenshot? If not then the .htaccess file is not there and you will need to create one.

  • Timothy
    • Chief Pigeon

    Then you need to create one. Will the App allow that?

    If not the then you can in the cPanel file manager. Your .htaccess should look a little like this:

    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]

    Providing you don’t have something like suPHP or other requirements then that will just work or at-least should :wink:

  • EricJL
    • Flash Drive

    RewriteEngine On

    RewriteBase /

    #uploaded files

    RewriteRule ^(.*/)?files/$ index.php [L]

    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [L]

    # add a trailing slash to /wp-admin

    RewriteCond %{REQUEST_URI} ^.*/wp-admin$

    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule . – [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]

    RewriteRule . index.php [L]

    <IfModule mod_security.c>

    <Files async-upload.php>

    SecFilterEngine Off

    SecFilterScanPOST Off

    </Files>

    </IfModule>

    RewriteCond %{HTTP_HOST} ^testimonyjournals.com$ [OR]

    RewriteCond %{HTTP_HOST} ^www.testimonyjournals.com$

    RewriteRule ^/?$ “http://www.Testimonyjournal.com” [R=301,L]

  • Timothy
    • Chief Pigeon

    You might wish to take a peek at the defaults from the WordPress Codex:

    http://codex.wordpress.org/Create_A_Network

    On this page it states:

    Eventually if you installed WordPress MU in subfolder/subdirectory (not in root folder on your server via ftp) and you have problem with image library, where thumbnails and images do not show, try this way. It’s a makapu’s solution.

    For subdomains:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?blog1/files/(.+) wp-content/blogs.dir/1/files/$1 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?blog2/files/(.+) wp-content/blogs.dir/2/files/$1 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?blog3/files/(.+) wp-content/blogs.dir/3/files/$1 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?blog4/files/(.+) wp-content/blogs.dir/4/files/$1 [L]

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

    Because it is your thumbs your having issue with, it might be worth a try?

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.