Image url changed by server in GET request
-
When the client side makes a GET request for an image url src it is passed a different url then the one in the <img> tag.
Ex.
<img src=”www.somewebsite.com/web-content/uploads/date/filename”>throws error -> GET http://www.somewebsite.com/currentpage/filename 404 (not found)
Why does it change the url from the one that is in the <img> tag? and how can I get around this. Also why the hell does the server do that? Should that not have been tested before a server update and realized that it would break many sites?
The blog I need help with is: (visible only to logged in users)
-
You are using self-hosted WordPress.org.
This forum is for WordPress.com hosted sites exclusively. Suggest you visit the support forums at https://wordpress.org/support/
WordPress.com and WordPress.org are little different and can be confusing. Take a look at the difference between both at https://en.support.wordpress.com/com-vs-org/
-
Thank you. I knew the difference and misread the site I was using; sorry for my mistake.
-
- The topic ‘Image url changed by server in GET request’ is closed to new replies.