Media uploader – why force HTTP?
-
Hi guys,
I just cannot understand it – why on earth is WP media uploader always uploading the images with HTTP protocol? It only causes problems. Why not use the universal “//”, which causes the content to load within the currently used protocol?//myblog.com/wp-content/uploads/2014/01/pic.jpginstead of forced protocolhttp://myblog.com/wp-content/uploads/2014/01/pic.jpgOr another option – don’t include the whole protocol and domain in the source address at all, just use the “/” in the beginning of source address and link it from the root directory. It would be
/wp-content/uploads/2014/01/pic.jpginstead of the full http path.More and more sites are using SSL mainly because the big sites are now serving their content only through HTTPS protocol. The SSLs are getting cheaper and many sites are offering their website in both versions. WordPress limiting itself only to one specific protocol is a little problematic.
Do you know any plugin that could modify the uploader output url? Or any hook I could use to simply string replace every
http://to//?P.S. I am not interested in modifying the website output (if is_ssl() -> replace http with https) – that’s what I am doing right now. I am looking for a universal solution performed during uploading the picture, not displaying it.
Cheers,
Daniel
The topic ‘Media uploader – why force HTTP?’ is closed to new replies.