WordPress.org

Ready to get started?Download WordPress

Forums

WP Original Media Path
[resolved] subdomain help (14 posts)

  1. Andrei Chira
    Member
    Posted 1 year ago #

    Hi,

    Would these settings be correct if I wanted to change the media directory to a subdomain?

    Store uploads in this folder: /static

    Full url path to files: http://static.domain.com

    http://wordpress.org/extend/plugins/wp-original-media-path/

  2. RVOLA
    Member
    Plugin Author

    Posted 1 year ago #

    Hello smlaci
    You must still specify the same path of the directory in the first field.

    For example my file upload is: / website / wp-content / uploads

    In the first field, here is the path: "wp-content/uploads"
    In the second field: "http://sub.domain.com/

    Normally the field 2 + field 1 must give the url that points directly to your images. In my example: http://sub.domain.com/wp-content/uploads/

    Anyway, made tests, you will quickly find a way.

  3. Andrei Chira
    Member
    Posted 1 year ago #

    Hello,

    Here's how I've set it up.

    I have WP installed and running on http://www.domain.com and I want to load images from a subdomain.

    I create the subdomain img.domain.com and I copy image folders from /wp-content/uploads/ to /img/, which is the folder of the subdomain, right?

    Now I have a folder structure like public_html/img/2013/01/file_name.jpg and so on.

    The image is accesible via http://img.domain.com/2013/01/file_name.jpg.

    All is left to do is tell WP to load images from /img folder, instead of loading them from /wp-content/uploads folder, right?

    So, in the first field i put img and in the second field http://img.domain.com, right?

    I did this but images are still loading from wp-content/uploads.
    Only new uploaded images go the subdomain.

    So, how do I make the old images to load from the subdomain?

  4. RVOLA
    Member
    Plugin Author

    Posted 1 year ago #

    ok I understand the problem ... You want to move the old pictures on the subdomain.

    This requires ca, get their hands dirty.
    1 / FTP the images move
    2 / update the GUID of the database
    3 / update posts_content for images

    This link explains the SQL operations:
    http://support.ecenica.com/wordpress/change-image-urls-wordpress/

    The plugin WP Original Path Media works only on the present and the future. It does not deal with old images.

    I hope you have the fortune in your work.

  5. Andrei Chira
    Member
    Posted 1 year ago #

    Thank you, I understand now.

  6. RVOLA
    Member
    Plugin Author

    Posted 1 year ago #

    your welcome. Think noted the plugin if you wish :)

  7. Andrei Chira
    Member
    Posted 1 year ago #

    Sure.

  8. ReginaldTerrell
    Member
    Posted 1 year ago #

    here is the folders of my site
    files
    wp-admin
    wp-content
    wp-includes

    i want all my uploads to go into the files folder

    so in the path to upload folder do i place /files or do i place files

  9. mezba016
    Member
    Posted 1 year ago #

    how can i make may meaid file link like
    img.domin.com/user_name/media_file_no/file_name.jpg?e83a2c

  10. Andrei Chira
    Member
    Posted 1 year ago #

    @reginald just files, no /.

  11. RVOLA
    Member
    Plugin Author

    Posted 1 year ago #

    @mezba016
    Hello
    The plugin does not work to change the folder tree wp-content/uploads / possilbiité with putting a subdomain.
    It does not work on naming your images and / or with the author's name in the folder.

  12. RVOLA
    Member
    Plugin Author

    Posted 1 year ago #

    @ ReginaldTerrell

    files is a folder?
    whether the first field in this rule: files
    in the second http://domain.com

    not completing the field by slash

  13. SickNick
    Member
    Posted 1 year ago #

    Ok i am not sure what i did but...i copied(not moved,just to be sure)all my media to a subdomain and i changed the path from fields 1 and 2.And i was ready to run the sql queries to update the links(for my old media).But there is no reason to do this...all my old images are opening from the subdomain and not from the 'wp-contents/upload':)

  14. Andrei Chira
    Member
    Posted 1 year ago #

    same here, i don't know why but it doesn't bother me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.