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
-
Which are the best off-page SEO techniques for 2020?
I have just published an awesome website or blog, and i really worked hard keeping everything perfect. Do you think it’s enough? Having a perfect blog, website or business is just enough. i need readers for my blog, visitors to my website, and customers for my business. So, what to do?
Local Website Optimization | | boxinghunter0 -
Local SEO for Multiple Locations - Is this the best approach?
Hi everyone! I previously have worked with single-location companies, and am now working for a company that is continuously growing and adding new locations. We are a financial institution that currently has 12 locations, and we should have 15+ locations by year-end 2017. Seeing as we have all of these locations, I thought the following approach would be the best for increasing our presence in local search. Our primary keyword is "credit union in location". Our search traffic has increased heavily over last year, but is down from the beginning of the year. I've gone through and done the following: Freshened up the content on the main website Created pages for each of our locations around April-end Attributed these location page URLs to our Google My Business locations Verified each location Wrote unique content for each page Our primary keyword rankings seem to fluctuate weekly. My next steps are to get our web design company to add the following: Structured Data on all location pages The ability to change SEO title and meta descriptions on location pages Sitemap (there is none currently, and I've been fighting them to get one added because it isn't needed.) I also plan on utilizing Moz Local to manage our local listings. After this is done I plan on finding ways for us to build links for each location, like the chambers of commerce in each city and local partnerships. Is this the best approach for our overall goal, and should I continue? Is there anything I should change about our current approach? I appreciate the help!
Local Website Optimization | | PelicanStateCU0 -
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 -
Is there an SEO benefit to using tags in WordPress for my blog posts?
We have locations across the US and are trying to develop content so that we rank well for specific keywords on a local level. For instance, "long tail keyword search in state" or "long tail keyword search near 76244", etc. The goal is to develop those content pages via blogs to rank for those keywords. We are using Yoast and will be optimizing each post using that tool. My questions are: 1. Are there any benefits to adding a long list of tags to each post?
Local Website Optimization | | Smart_Start
2. If yes, do I need to limit the number of tags?
3. Do we need to block the indexing of yoast to those tags and categories for duplicate content issues? Any insight on the best way to optimize these blog posts with the use of tags or other avenues would be greatly appreciated.0 -
International SEO - How to rank similar keys for differents countries
Hello MOZ friends.
Local Website Optimization | | NachoRetta
I work in an digital marketing agency in Argentina and since we have a lot of traffic from other Spanish-speaking countries like Mexico and Spain, we want to rank specific keywords for these countries.
We were thinking of putting new versions of the homepage in subfolders, for example /es/ for Spain, /mx/ to Mexico, etc. In these new subfolders we would place a very similar version of the homepage with a few minor modifications to work specific keywords in each country. For example, in Spain it is more searched "marketing online", and "marketing digital" is more used in Mexico and Argentina.
I have understood that to implement this we would be to place a label hrflang on the homepage directing visitors and crawlers to the correct version of each country. Is it ok?
Another concern is, whether they are very similar pages, Google does not take it as duplicate content ..
I read this:
https://moz.com/blog/the-international-seo-checklist
And i am not completely sure about using subfolders for each country, but i dont know how to position diferents keywords for diferent countries.
Regards,
Juan Ignacio Retta0 -
Local SEO In A Different Language
I am pretty new to web design and SEO, so I am sure I have completely done this wrong. I work for a U.S. based equipment dealer and before I started working here my company incorporated in Canada under "(our main product) of Canada". Even before we had any SEO work done on our website, we ranked in the top 3 across Canada for our main product. The one exception to this was Quebec where we rarely got any traffic due to the language barrier. We started working to fix this last summer using the Montreal Consulate, our SEO company at the time and a translator. They each gave me the same French translation of our Company name and I had them translate the 8 most visited pages on our existing site. I then created a replica of our existing site, hosted it on the French translation of our name and started running inbound links to this site from our U.S. and Canada sites. The first thing I am wondering is if there's any issue with this practice? We have had good results so far and traffic from Quebec is way up across our three sites. The second issue I have is we just hired our first employee in Quebec and found a partner there. They are both adamant that the translation we are using is incorrect. I own the domain for the correct translation they are suggesting but I have no idea how to go about it. Any suggestions?
Local Website Optimization | | DohenyDrones0 -
Drastic changes in keyword rankings on a daily basis
Anybody ever seen keyword rankings for a site change drastically from day to day? I've got a client, a local furniture store, whose local keywords (furniture + city) rank consistently well without much change, but when it comes to broader keyword rankings (like "furniture" or "furniture store") in their zip code, they'll go from ranking at the top of Google one day to not being ranked at all the next (at least according to Raven Tools). My best guess is that it's just a reflection of personalized results from Google, but such a dramatic change day in and day out makes me wonder.
Local Website Optimization | | ChaseMG0 -
Combining sites. But what domain to use?
So we currently have two websites: www.thephotoboothguys.co.uk and www.thephotoboothguys.com.au We're redeveloping our sites, and combining them to have just a singular website (and then sub sections for each country / location). Unfortunately we can not get the .com of our domain, nor the _.net _And I really can't find a .com that i think will work (for lack of availability, or just because the domain name would not be succinct enough). So, I also have registered - www.photobooth.gy and www.thephotoboothguys.co
Local Website Optimization | | blitzna10
My question ultimately is - is it a bad idea to use a .gy or .co as my main domain - especially when we dont operate in either Guyana or Columbia - but, assuming that the content and structure of the website make it clear what countries and locations we do operate in. Is this something Google et al will figure out over time? Or is it likely to make a huge impact? Or should I be searching harder to find a .com that will work for me? Cheers!0