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
-
Local SEO: thoughts on driving users to a homepage or to a local landing page?
I work with a client who is about to launch a local landing page for one of their locations. They're worried that the new local landing page will cannibalize some of the keyword rankings for the homepage. Any advice on how to have a local presence but still drive people to the more valuable homepage?
Local Website Optimization | | jrridley0 -
What is the SEO effect of schema subtype deprecation? Do I really have to update the subtype if there isn't a suitable alternative?
Could someone please elaborate on the SEO effect of schema subtype deprecation? Does it even matter? The Local business properties section of developers.google.com says to: Define each local business location as a LocalBusiness type. Use the most specific LocalBusiness sub-type possible; for example, Restaurant, DaySpa, HealthClub, and so on. Unfortunately, the ProfessionalService page of schema.org states that ProfessionalService has been deprecated and many of my clients don't fit anywhere else (or if they do it's not a LocalBusiness subtype). I find it inconvenient to have to modify my different clients' JSON-LD from LocalBusiness to ProfessionalService back to LocalBusiness. I'm not saying this happens every day but how does one keep up with it all? I'm really trying to take advantage of the numerous types, attributes, etc., in structured data but I feel the more I implement, the harder it will be to update later (true of many things, of course). I do feel this is important and that a better workflow could be the answer. If you have something that works for you, please let us know. If you think it's not important tell us why not? (Why Google is wrong) I understand there is always a better use of our time, but I'd like to limit the discussion to solving this Google/Schema.org deprecation issue specifically.
Local Website Optimization | | bulletproofsearch0 -
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 -
Hosting Change & It's Impact on SERP Performance (with a Side of Domain Migration)
Hi everyone, I've read a lot on forums about the topic of hosting and it's impact on SEO, but I've seen conflicting opinions. I wanted to see if anyone might have a definitive answer for this scenario: Our parent company is based in the EU and wants to move our English domain to their site -- either as part of the main .com or potentially as a new subdomain. One of those things is going to happen; it's just a question of which one. One issue I have is that they host their .com with content targeting English speakers (mostly in the U.S.) in France, so if we moved our content to their site we'd be going from our existing domain hosted in the U.S. (with the majority of visitors coming from the U.S.) to a site that's hosted in France. I've read that folders are still usually better over subdomains in terms of passing the strength of the domain on to pages. So... would it be better to have a subdomain hosted in the U.S., or just have folders under the main domain, but that content would be hosted in France? Our existing domain and the domain we'll be moving to are about even in terms of domain authority and size. Happy to get any feedback you might have. Anyone come across any case studies on this particular topic that would be helpful? Thanks!
Local Website Optimization | | SafeNet_Interactive_Marketing0 -
Hiring an SEO Company
I am looking to hire an SEO company each have there own ideas and strengths. My concerns are what is good and what is bad. Here is one company where their Silver Package fits within our budget. But there are a lot of features on here we do know if is it good or bad SEO. I attached the packages they send us. If we were to hire an SEO Company to do our offsite SEO, what should we be looking for that is considered whitehat seo for 2015? zCJowNb
Local Website Optimization | | TIM_DOTCOM0 -
SEO and Redirecting Site to a Different Firm's Domain while Maintaining Current Domain's Rankings
I am a plaintiffs' attorney with a website that ranks well for my major practice areas. I am considering taking a position with a new firm. As part of the discussion, the new firm would allow me to keep my current site so long as it redirects to my bio page on their firm's site. My goal is to keep my current site ranking well and continuously work on SEO efforts, in case I leave the new firm and want to rely on my current site in the future. My questions are: Is there a way to redirect my site every time it shows up in the listings (I have 1000+ indexed pages) without sacrificing its current rankings b/c of bounce rate issues, etc and 2) If I continue to add pages and work on SEO for my site while it redirects to another, will those efforts be worthwhile due to the redirect? I want to keep trying to build my site even though it redirects to a page on a different domain.
Local Website Optimization | | crpoll0 -
How Google's Doorway Pages Update Affects Local SEO
Hey Awesome Local Folks! I thought I'd take a proactive stance and start a thread on the new doorway pages update from Google, as I feel there will be questions coming up about this here in the forum: Here's the update announcement: http://googlewebmastercentral.blogspot.com/2015/03/an-update-on-doorway-pages.html And here's the part that will make local business owners and Local SEOs take a second glance at this: Here are questions to ask of pages that could be seen as doorway pages: Do the pages duplicate useful aggregations of items (locations, products, etc.) that already exist on the site for the purpose of capturing more search traffic? I think this will naturally lead to questions about the practice of creating local/city landing pages. At this point, my prediction is that this will come down to high quality vs. crummy quality pages of this type. In fact, after chatting briefly with Andrew Shotland, I'm leaning a bit toward seeing the above language as being strongly geared toward directory type sites and large franchises. I recommend reading Andrew's post about his take on this, as I think he's on the right track: http://www.localseoguide.com/googles-about-to-close-your-local-doorway-pages/ So, I'm feeling at this point that if you've made the right efforts to develop unique, high quality local landing pages, you should be good unless you are an accidental casualty of an over-zealous update. We'll see! If anyone has thoughts to contribute on this thread, I hope they will, and if lots of questions start coming up about this here in the community, feel free to link back to this thread in helping your fellow community members 🙂 Thanks, all!
Local Website Optimization | | MiriamEllis9 -
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