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
-
Question About Local SEO
Hey all, If a business operates in one city but works with associated organizations across multiple regions how would this impact a local SEO campaign? For example, a transportation company is located in Texas but services the Northwest and New England by outsourcing to smaller transportation companies in each of those regions. Would it be wise to create pages for each region they service on their website and then break that down in further into specific cities? Also, would it be worth targeting local search terms even though specific cities are serviced by the associated organizations and not the parent company itself? Thanks in advance, Andrew
Local Website Optimization | | mostcg0 -
Multiple My Business pages affecting local SEO?
Hey Moz! We have a situation with a dentist firm with multiple doctors at the same address. They have two locations for their dental offices, and each of the dentists operate at both offices. The issue: Each doctor insists on having their own by business page for each location and i'm afraid this is hurting their local SEO. We've been tracking keywords by week and we've seen some big fluctuations in ratings and i'm looking into why this is happening. The office in location 1 has it's own Google My Business page and the three dentists have their own my business page set up at the exact same address. The office in location 2 has it's own Google My Business page as well and the three dentists have their own my business page there also. This leads the two addresses of the main offices having multiple My Business pages at the same address competing against eachother since they are all are registered with similar names and specialties. Could this be hurting our local SEO? Thanks! -Z
Local Website Optimization | | zacgarrison_700 -
Local SEO Best Practise?
We are planning to localize our website by launching CCTLD. But there is a little confusion about some aspects, which are: Should we track location and take our visitors to their native domain? Or do we need to take our visitors to .com domain and show a Popup, if they want to visit the native region website? What is the best case study for localization?
Local Website Optimization | | UmairGadit0 -
Local food delivery SEO strategy
Hey guys, I'm working with a new company that doesn't have a brick and mortar storefront, they deliver. They basically deliver pre packaged smoothies in a VERY localized area (Vancouver, BC). I'm wondering how grandiose their goals should be re ranking for keywords that have non localized authority. What do I mean? Lets say their marketing pillars are "health education related to smoothies" "convenient veggies for smoothies" "(insert health benefit here) for smoothies". Should they be trying to compete for these keywords? Or should they really be trying to rank with keywords especially to Vancouver? Side note: What kind of effect does Country and Locality have on keywords that are generally used by content providers and not service related companies building out an inbound strategy? Thanks in advance!
Local Website Optimization | | Anti-Alex0 -
Is this cloaking or some dangerous blackhat SEO tactic?
Hey wonderful SEO guys, I need your advice. Would the following be considered cloaking, or a black hat SEO tactic. I performed the following search for Guess tops on Google: "Guess women's tops." Please see the attached image (Guess 1) of the description tag that comes up with this search. This not the primary page description tag, but when you visit the women's tops tag, that description is not visible on the page. In fact it is placed in the meta name section (see Guess meta-name description image). The information appears as a description on a SERPS depending on the keyword search performed, but the text is just not visible on the tops page. Can this be considered a form of cloaking? If not, is this a dangerous blackhat SEO tactic, or actually nothing to be worried about? We are thinking of doing something similar with some of lengthy homepage introductions-making them invisible, but still appearing on SERPS, as long as it relates to content that is clearly on the website, or what the website is about. Please advise. Thanks. qiNXxYR.png BXKZn08.png
Local Website Optimization | | Lovingly0 -
Local SEO question
Hi I was wondering is there any specific rules for Local SEO for a service company which provides a service in a variety of cities but only has one physical location. For example is it ok to target the other cities in Title Tags or would this be frowned upon? Regards
Local Website Optimization | | TheZenAgency0 -
Local franchise seo strategy. what could be the best practice?
Hello what Could be the best practice of seo and website optimization for a franchise company. Business model: Lets say, a company(company.com) situated in a country having stores in different cities (more than 2 stores in some), provides n number of services depending on store's location. Physical addresses for some stores are available and new stores shall be launched in future. But, the seo and website pages are needed for those locations at the moment as well. If I choose a sub folder, to give each store a URL. This is how it should look like Country level pages company.com, company.com/service1/ _ _ _ company.com/serviceN/ City level pages company.com/city1/, company.com/city1/location1/ , company.com/city1/location2/, company.com/city2/ , company.com/city3/ Q1) In case I make each service page specific to a store location for eg. company.com/city1/service1/, it will create duplicate content issue because content of company.com/city1/service1/ and company.com/service1/ shall be 60% same, except for **meta title,description and contact detail in footer. ** So, the question arises that shall i give canonical to country level main services page i.e company.com/city1/service1/ canonical to company.com/service1/ as it is very hard to make unique content for same services page. Q2) Or Do I need to rework on my complete website design and seo strategy?
Local Website Optimization | | Technians1 -
Does building multiple websites hurt you seo wise? Good or bad strategy?
HI,rategy. So I spoke to a local Colorado seo company and they suggested to find whatever keywords is the most searched under my GWT's and put .com behind it and build other sites for other keywords. I was curious about this type of strategy. Does this work? This seo guy said I could just get a DBA bank account and such for each domain name etc. I am not wanting to mislead anyone, but I am curious if for the sake of promoting other services, if creating other websites with partial and EMD's are worthwhile? Another issue I worry about is if I put my companies phone number, then next thing you know there is 3 or 4 sites that use that same phone number. To me this does not build trust with Google. But being I am learning, maybe this is a common strategy, or doomed from the start. Just curious what you think. Would you build other sites to try and rank for other services? Or keep one sites and maximize it? Thank you for your thoughts. I just do not want to pay $3000 per site if it will hurt not help.
Local Website Optimization | | Berner0