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

  1. Andrei Chira
    Posted 2 years ago #


    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


  2. RVOLA
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #


    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
    Plugin Author

    Posted 2 years 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:

    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
    Posted 2 years ago #

    Thank you, I understand now.

  6. RVOLA
    Plugin Author

    Posted 2 years ago #

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

  7. Andrei Chira
    Posted 2 years ago #


  8. ReginaldTerrell
    Posted 2 years ago #

    here is the folders of my site

    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
    Posted 2 years ago #

    how can i make may meaid file link like

  10. Andrei Chira
    Posted 2 years ago #

    @reginald just files, no /.

  11. RVOLA
    Plugin Author

    Posted 2 years ago #

    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
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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
    Posted 2 years 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

  • WP Original Media Path
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.