Image URLs changed 3 times after using a CDN - How to Handle for SEO?
-
Hi Mozzers,
Hoping for your advice on how to handle the SEO effects an image URL change, that changed 3 times, during the course of setting up a CDN over a month period, as follows:- (URL 1) - Original image URL before CDN:www.mydomain.com/images/abc.jpg
- (URL 2) - First CDN URL (without CNAME alias - using WPEngine & their own CDN):
username.net-dns.com/images/abc.jpg - (URL 3) - Second CDN URL (with CNAME alias - applied 3 weeks later):
cdn.mydomain.com/images/abc.jpg
When we changed to URL 2, our image rankings in the Moz Tool Pro Rankings dropped from 80% to 5% (the one with the little photo icons).
So my questions for recovery are:
- Do I need to add a 301 redirect/Canonical tag from the old image URL 1 & 2 to URL 3 or something else?
- Do I need to change my image sitemap to use cdn.mydomain.com/images/abc.jpg instead of www.?
Thanks in advance for your advice.
-
Sorry I missed this follow-up earlier. Within the site map you'll want to change the http://WWW to http://CDN for these image files. The www version of your site, and the cdn server are on two different IPs / server. You want images to be serving from the CDN one.
For 2, if you do use 301 redirection I'd recommend scripting it so that the script inspects whether or not it's an image file and then applies the cdn change. A pro in your area that works with REgex and htaccess will be able to guide you through that.
The username.net-dns.com thing... That's not your server is it? You can't apply redirects on servers outside of your control. Cheers!
-
Hi Ryan,
Thanks for your answer - Sorry I didn't mean about the URL for the location of the sitemap - I think my question wasn't clear - may I rephrase it:(1) Inside my image sitemap, the urls serve off the www. subdomain as bolded in the example below (not .cdn). I'm assuming this setup is correct as this was auto-generated by an Image Sitemap Generator - does the below image:loc look correct to you?
<url><loc>http://www.bosphorusyacht.com/yachts/</loc>
image:imageimage:lochttp://**WWW.**bosphorusyacht.com/wp-content/uploads/2010/09/istanbul-boat-rental.jpg</image:loc></image:image></url>(2) For a 301 image redirect would I set it up like this:
Redirect 301 /wp-content/uploads/2010/09/istanbul-boat-rental.jpg
http://**WWW.**bosphorusyacht.com/wp-content/uploads/2010/09/istanbul-boat-rental.jpgOR
Redirect 301 /wp-content/uploads/2010/09/istanbul-boat-rental.jpg
http://**CDN.**bosphorusyacht.com/wp-content/uploads/2010/09/istanbul-boat-rental.jpgOR
How would I 301 this one?: username.net-dns.com/images/abc.jpg
Hope you can advise one last time - thank you!
-
Right. Not everything is going to be served from cdn. It's most likely setup for your images so your sitemap will still reside on www. Make sure to point to the front end files though as those are the publicly accessible ones.
-
Hi Ryan,
Thanks for your reply and advice. I've read the guidelines and will follow those. But I wonder if you can clarify an issue on implementing them that is not answered there:On my site the images in 'Backend' (edit/admin/code view) start with WWW.mydomain... and in 'Frontend' (actual published view in browser) they start with CDN.mydomain...
So my question is, do I use the Backend or Frontend (www. or cdn.) for the URL in both image sitemaps and in 301 redirect final destination?
My current sitemap for example seems to be using www rather than cdn. : http://www.bosphorusyacht.com/sitemap-image.xml
Thanks for your help!
-
You're on it. Redirecting to the new image source and submitting a new sitemap pointing to the URL 3 location for your images will be big steps in the right direction. Be sure to follow the instructions here for your sitemap: https://support.google.com/webmasters/answer/178636 as well as reviewing image publishing guidelines: https://support.google.com/webmasters/answer/114016. Cheers!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Does having an embedded Google Map still count as a positive SEO signal?
I know this was true a few years ago, however is there still an advantage to having an embedded map vs. a pop up map in 2017?
Local Website Optimization | | BigChad21 -
Is CNAME / URL flattening a bad practice?
I recently have moved a number of websites top a new server and have made the use of CNAME / URL flattening (I believe these are the same?). A network admin had said this is an unrecommended practice. From what I have read it seems flattening can be beneficial for site speed and SEO even if very little.
Local Website Optimization | | Dissident_SLC0 -
Company sells home appliances and commercial appliances. What is the best way to differentiate the two on our site for the best user experience/SEO?
Should we structure it starting at the homepage with the user selecting for home or for business, that way they have to make a selection before moving further OR should we somehow differentiate in the navigation using the top menu tabs, dropdowns, etc?
Local Website Optimization | | dkeipper1 -
Google my business - Image sizes
I have scoured the web in order to find a guide that would give me the ideal dimensions for images to populate google my business page... in vain. Google itself is very vague about it as indicated below Format: JPG, PNG, TIFF, BMP Size: Between 10 KB and 5 MB Minimum resolution: 250px tall, 250px wide Does anyone know of a guide with optimum recommendation for each photo (profile, Cover photo, business specific photos...) or alternatively can recommend the exact size needed. Thanks
Local Website Optimization | | coolhandluc0 -
SEO Client not rankings in Google
Hello, I have a client that has continued to be problematic for my team and I. They have fair to middling rankings in Yahoo and Bing, but none in Google. I realize that they are three separate search engines each with their own criteria, but this client is the only one experiencing this problem. There is no significant duplicate content that can find, same with restrictions in the robots.txt file. These seems to be no reason why all my tools say that this client has no presence at all in google, especially when the client gains most of their traffic through Google. Can anyone assist me in finding out what is going wrong? Client website for reference: http://www.volvethosp.com/ Best, BeyondIndigo
Local Website Optimization | | BeyondIndigo0 -
Recommended blogs and sites about local seo
HI.
Local Website Optimization | | corn2015
Can you please tell me some great blogs/sites to read daily about local seo? I'm really wanting to beef up my knowledge in this area to assist local businesses. Corn1 -
What is the best type map for local SEO?
Hi mozzers, Can someone tell me which type of map is best when embedding it into your service pages? or any map is good enough? Why? Thanks guys!
Local Website Optimization | | Ideas-Money-Art0 -
What's the best way to add phrase keywords to the URL?
Hi, Our keywords are all our service + a list of towns (for example, "carpet cleaning St. Louis"). The issue I'm having is that one particular site could be targeting "carpet cleaning St. Louis", "carpet cleaning Manchester", "carpet cleaning Ballwin", "carpet cleaning Kirkwood", etc. etc. etc... up to maybe 15 different towns. Is there a way to effectively add these keywords into the URL without making it look spammy? I'm having the same issue with adding the exact keywords to the page title, img alt tag, etc. Thanks for any advice/input!
Local Website Optimization | | nataliefwc0