Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full URL path to files #254

Closed
pakpenyo opened this issue Nov 18, 2015 · 1 comment
Closed

Full URL path to files #254

pakpenyo opened this issue Nov 18, 2015 · 1 comment

Comments

@pakpenyo
Copy link

I'm using other domain for store my image. This domain using cloudflare and support https.

Trying access mydomain with https, trial and error at the Full URL path to files (Media Settings).

When using http://storedomain.com/media, image cannot load properly when access ssl domain https://www.mydomain.com.

<img class="attachment-medium wp-post-image" width="720" height="405" sizes="(max-width: 720px) 100vw, 720px" srcset="storedomain.com/media/mozaik-151107-360x203.jpg 360w, storedomain.com/media/mozaik-151107-720x405.jpg 720w, storedomain.com/media/mozaik-151107.jpg 960w" alt="Mozaik" itemprop="image" title="mozaik-151107" src="storedomain.com/media/mozaik-151107-720x405.jpg">

Trying with //storedomain.com/media, i can see all images.

<img class="attachment-medium wp-post-image" width="720" height="405" sizes="(max-width: 720px) 100vw, 720px" srcset="//storedomain.com/media/mozaik-151107-360x203.jpg 360w, storedomain.com/media/mozaik-151107-720x405.jpg 720w, storedomain.com/media/mozaik-151107.jpg 960w" alt="Mozaik" itemprop="image" title="mozaik-151107" src="https://storedomain.com/media/mozaik-151107-720x405.jpg">

So, can i use //storedomain.com/media? I'm not sure 😄

Thanks and really sorry about my bad english....

@joemcgill
Copy link
Member

Hi @pakpenyo,

Using protocol relative URLs here should be fine. If you don't include the // at the beginning, the URLs will be read as relative paths, like this http://mysite.org/storedomain.com/media/image.jpg, which is why they weren't loading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants