media file url - http/https problem (4 posts)

  1. jkhongusc
    Posted 3 years ago #

    I am running a WP multi-site installation at USC. Everything for the most part is running well. One problem that we are experiencing is that when we upload media files, the media urls are secure (https).

    For security reasons we force ssl for administration with this setting:
    define('FORCE_SSL_ADMIN', true);

    All of our sites, for now, are just regular http. Having secure media links within our non-secure content, breaks the page depending on the browser security settings. We have a large number of content developers. While it would be fine to tell them all to change the url when uploading media, we would prefer to have the url default to http.

    Any suggestions?

  2. jkhongusc
    Posted 3 years ago #

    I found the cause of our problem, it is the Domain Mapping plugin. The DM plugin is re-writing the 'siteurl' variable and adding the https during the admin sessions.

    Not sure what to do at this point. I am considering either modifying the DM plugin or changing the media url building function in posts.php

  3. glamor
    Posted 3 years ago #

    i have this exact same problem. if anyone has solutions or suggestions.

  4. jkhongusc
    Posted 3 years ago #

    We solved this by customizing the relative image url plugin:


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.