Problem with image URL settings in published posts
-
Hi, I am using wordpress as cms for my website.
The problem is, when I use media library for my posts images and featured images, on the webpage the image url changes from http://mywebsite.com/images/myimage.jpg to http://xx.wp.com/mywebsite.com/images/myimage.jpg
I would like my images URL addresses to be exactly as they are located without any wp.com addition. Is there s solution?The blog I need help with is: (visible only to logged in users)
-
Hi,
Would you please provide an example of an image which has an URL of the form
http://mywebsite.com/images/myimage.jpg
and also the form
http://xx.wp.com/mywebsite.com/images/myimage.jpgThe image in the first post of the site https://shahroozgerami.files.wordpress.com has the URL
https://shahroozgerami.files.wordpress.com/2016/06/food-coffee-lunch-burrito.jpg?w=900 -
In a test on my primary site, I find that an image uploaded to a post has a file URL of the form
https://xxxx.files.wordpress.com/year/month/image-title-slug.jpg
while it’s permalink is of the form
https://xxxx.wordpress.com/year/month/date/post-title-slug/image-title-slug/ -
I just found out that the prefix added to permalink is added by photon (included in Jetpack) . I believe it caches the images on wp.com servers around the world to improve image loading performance and speed. By disabling photon in Jetpack dashboard, the prefixes disappeared.
-
-
For future reference, you might find the following forum helpful: WordPress.org forums » Support » Plugins and Hacks » Jetpack by WordPress.com.
- The topic ‘Problem with image URL settings in published posts’ is closed to new replies.