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
-
I have a USA Shopify store and want to create a UK store. Should I use a domain or a sub-domain for the new store?
I'm currently running 2x Shopify Stores (names changed from actual): "coolpants.com" is our UK store "us.coolpants.com" is our USA store However, Google Analytics has shown that most of the traffic to "coolpants.com" comes from the USA, and this market has our biggest growth potential. So we want to switch our domain setup to the below: Make "coolpants.com" our USA store Stop using "us.coolpants.com" and redirect it to "coolpants.com" Set up our UK store as a new domain ("coolpants.co.uk) or subdomain ("uk.coolpants.com") My question is – should I set up the UK store as a domain or a sub-domain? What are the pros and cons of each? Thank you in advance for any help!
Local Website Optimization | | benkapow0 -
Maintaining Rank During a Domain Change
Looking to the community for any insights on our situation. We moved a decently ranked domain name that was ranking between 3rd-6th in organic search results to a new domain that we thought would serve us higher position in the long term. We went through Google's change of address tool and over a period of 2 to 3 weeks we went from being off the map with our new domain to showing up again around page 2 - 14-18th position. It seemed that our climb back corresponded to Google indexing our new urls. Each time a large batch was indexed we seemed to jump back up. But, in our last report we noticed that we didn't budge any higher and some of our non-branded keywords actually dropped a little. The old domain was "citychurchfamily.org" and the new domain is "citychurchbloomington.org". We were thinking that the latter would be a stronger domain in the long term. Any insights on why we haven't fully retained our former ranking value at this point or anything I should be focusing on? We are trying to rank for this phrase "churches in bloomington, in". Thanks!
Local Website Optimization | | a_toohill1 -
Looking for SEO advice
Hi, I have a website that has been built with SEO in mind from the beginning but it's failing to rank at all. We have checked everything and found nothing we see that would be negatively affected the SEO value. The link is http://www.fancydoorsedmonton.com/ Any insight on anything you may find would be greatly appreciated! Thanks!
Local Website Optimization | | Web3Marketing870 -
Local SEO - Multiple stores on same URL
Hello guys, I'm working on a plan of local SEO for a client that is managing over 50 local stores. At the moment all the stores are sharing the same URL address and wanted to ask if it s better to build unique pages for each of the stores or if it's fine to go with all of them on the same URL. What do you think? What's the best way and why? Thank you in advance.
Local Website Optimization | | Noriel0 -
Subdomain for ticketing of a client website (how to solve SEO problems caused by the subdomain/domain relationship)
We have a client in need of a ticketing solution for their domain (let's call it www.domain.com) which is on Wordpress - as is our custom ticket solution. However, we want to have full control of the ticketing, since we manage it for them - so we do not want to build it inside their original Wordpress install. Our proposed solution is to build it on tickets.domain.com. This will exist only for selling and issuing the tickets. The question is, is there a way to do this without damaging their bounce rate and SEO scores?
Local Website Optimization | | Adam_RushHour_Marketing
Since customers will come to www.domain.com, then click the ticketing tab and land on tickets.domain.com, Google will see this as a bounce. In reality, customers will not notice the difference as we will clone the look and feel of domain.com Should we perhaps have the canonical URL of tickets.domain.com point to www.domain.com? And also, can we install Webmaster Tools for tickets.domain.com and set the preferred domain as www.domain.com? Are these possible solutions to the problem, or not - and if not, does anyone else have a viable solution? Thank you so much for the help.0 -
Multiple Locations with Branded Name/Keyword in URL
I have a client, let's call him "Bob". Bob has 2 stores where he sells "Widgets", Bob's Widgets and Bob's Widgets South. These locations are roughly 40 miles from each other and serve two different marketplaces. Each location has their own website "www.bobswidgets.com & www.bobswidgetssouth.com". Each location is run by different individuals. The Store Manager at Bob's Widgets is complaining that when you type "Bob's Widgets" into the search engines "Bob's Widgets South" website is indexing in the 2nd and/or 3rd position. The Store Manager at Bob's Widgets feels that Bob's Widgets South could be stealing business from him because of the way Google is indexing the sites. I have explained to him that the keyword the user is typing in is in both names of the locations and in each URL and this is prompting the search engine to index both sites. Am I missing something else???
Local Website Optimization | | mittcom0 -
How to handle clients who want to target far away from their location?
In general, How do you recommend handling clients that are persistent about targeting a location that is very far away from their physical location, i.e. the client is in Providence, RI, but wants to target Boston, MA. I typically give them a discussion about how they will not rank in the 7 packs, particularly post pigeon, but wanted to know if the Moz community had any other tips since this seems to come up so frequently. Thank you!
Local Website Optimization | | Red_Spot_Interactive1 -
Local SEO Tools for UK
Hi guys I'm looking for any recommendations for local SEO tools in the UK? I keep stumbling across a variety of different tools but they all seem to cater for the US market only. Any tools or tips would be greatly received!
Local Website Optimization | | DHS_SH0