Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter whimsy

    (@whimsy)

    I guess what I really mean to say is this:

    The upload path always uses the wordpress install path as a base.

    I would like it to use the blog path as a base instead.

    There doesn’t seem to be a way to do this. (For some reason I cannot access the codex right now….odd network outage or something, so perhaps I’m missing something, but I’ve read those docs on wordpress install directories and used them for years)

    wp-admin/options-media.php

    Store uploads in this folder

    if you change this setting
    to “pix” it doesn’t end up with domain.com/pix/fileshere ?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter whimsy

    (@whimsy)

    What I was trying to do was have my files appear in a location like this:

    https://example.com/pix/file

    My (relevant) blog settings are as follows…
    Main options:
    WordPress address (URL) https://example.com/wordpress
    Site address (URL) https://exmaple.com/
    Media Options:
    Store uploads in this folder: pix

    Resulting file upload URL:
    https://example.com/wordpress/pix/file

    The closest hack I can do to get what I want is this change:
    Media Options:
    Store uploads in this folder: ../pix

    Actual file upload URL:
    https://example.com/wordpress/../pix/file
    (as it appears in the browser’s html)
    If I type in the browser my desired URL it goes to the same place.

    I’m posting here in this forum as a request to change WordPress–I’m 99.9% sure it won’t do what I want as is.

    ahhh, I see you are running 2 different ‘sites’ per se
    I didn’t realize that
    I’m not sure if you can expect wordpress to place content in a place that really isn’t part of the ‘wordpress site’
    I don’t know how extensive your blog is but wordpress does have an option to have a static page as the first page for your site…probably not something that would help you

    have you tried configuring “Full URL path to files” ? -also in the media options

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Given that I once moved mine from /wp-content/uploads to /content/sitename/uploads I know it can be done.

    I wish I knew why they seem to think you have to make the path relative, though, that’s silly!

    Store uploads in this folder
    /public_html/www/pix

    Full URL path to files
    https://example.com/pix

    And you’re done. Obviously you have to know the absolute path of your folders. Mine worked fine with /public_html/www/blah, but you may need to go one up to /home/ipstenu/public_html/www….

    I’m gonna fix the codex now!

    Thread Starter whimsy

    (@whimsy)

    I’m not really trying to run two ‘sites’ here. I was just trying to keep the WordPress administrative stuff out of my site’s root directory.

    I guess I could do it by moving my wp-content directory to be my site root. (While leaving the rest of the WordPress directory structure as it is)

    But I would really like some way of making the file upload path be relative to my WordPress blog directory instead.

    have you tried configuring “Full URL path to files” ? -also in the media options

    Thread Starter whimsy

    (@whimsy)

    Ahh…if full paths work fine, I should be able to do what I want afterall. (WP never ceases to amaze me with how versatile it is!)

    I’ll have to go and see how it works for me.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    That’s what I said.

    Store uploads in this folder
    /public_html/www/pix

    Full URL path to files
    https://example.com/pix

    Or where ever you want it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘I would love a clean URL path for uploaded files’ is closed to new replies.