Title: https/http: base-relative URIs for images?
Last modified: August 20, 2016

---

# https/http: base-relative URIs for images?

 *  [mark-up](https://wordpress.org/support/users/mark-up/)
 * (@mark-up)
 * [14 years ago](https://wordpress.org/support/topic/httpshttp-base-relative-uris-for-images/)
 * Hi!
 * I’m desperately looking for a way to create base-relative images-URIs. I’ve already
   read ‘some’ threads and arguments about this issue in the past, but I couldn’t
   find any practical solution 🙁
 * In my special case, the problem with absolute image-URIs is caused because /wp-
   admin is accessible only via ‘https’ for security reasons, but the main blog-
   site is not (-> http).
    Because new blog entrys are written under ‘https’ all
   the image-links are hard-pointing to the https-version. That’s realy a pain in
   the ass:-(
 * Is there realy no clean way to avoid the absolute image-urls?
 * Thanks
    Mark

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [14 years ago](https://wordpress.org/support/topic/httpshttp-base-relative-uris-for-images/#post-2755955)
 * Have you looked at this:
 * [http://codex.wordpress.org/Linking_Posts_Pages_and_Categories#Absolute_versus_Relative_Links](http://codex.wordpress.org/Linking_Posts_Pages_and_Categories#Absolute_versus_Relative_Links)
 *  Thread Starter [mark-up](https://wordpress.org/support/users/mark-up/)
 * (@mark-up)
 * [14 years ago](https://wordpress.org/support/topic/httpshttp-base-relative-uris-for-images/#post-2755984)
 * Hey yogi,
 * thank’s but I’m afraid I didn’t get it:-) How does this help?
    Im searching for
   a method to generate base-relative image links..
 * Instead of ‘[https://www.mysite.org/test/test.jpg&#8217](https://www.mysite.org/test/test.jpg&#8217);
   the link saved to the db by WP should be ‘/test/test.jpg’ by default.
    In this
   case the image would be displayed under https AND https-protocol – otherwise 
   only under https.. 🙁
 * Mark

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘https/http: base-relative URIs for images?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [mark-up](https://wordpress.org/support/users/mark-up/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/httpshttp-base-relative-uris-for-images/#post-2755984)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
