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
-
Help choosing ideal URL structure
Hi All, We are considering changing the link structure for the website of a large restaurant group, which represents about 100 restaurants in the USA. While I have some opinions, I'd very much welcome the opinions of some other seasoned SEO's as well. There are two options on the table for the link structure, which you can see below. The question is for restaurants with multiple locations, and how we structure those URLs. The main difference is whether we include the "/location/" of the URL, or if that is overkill? I suppose maybe it could have some value if someone is searching a term like "Bub City Location", with "location" right in the search. But otherwise, it just adds to the length of the URL, and I'm not sure if it'll bring any extra value... In this example, "bub-city" is the restaurant name, and "mb-financial-park" is one of the locations. Option A
Local Website Optimization | | SMQ
http://leye.local/restaurant/bub-city
http://leye.local/restaurant/bub-city/location/mb-financial-park/ Option B
http://leye.local/restaurant/bub-city
http://leye.local/restaurant/bub-city/mb-financial-park/ Thoughts?0 -
SEO Company wants to rebuild site
Hello Community, I am a designer and web developer and I mostly work with squarespace. Squarespace has SEO best practices built into the platform, as well as developer modes for inserting custom code when necessary. I recently built a beautiful website for a Hail Repair Company and referred them to several companies to help them with SEO and paid search. Several of these companies have told this client that in order to do any kind of SEO, they'll need to completely rebuild the site. I've seen some of the sites these companies have built, and they are tacky, over crowded and hard to use. My client is now thinking they need to have their site rebuilt. Is there any merit to this idea? Or are these companies just using the knowledge gap to swindle people into buying more services? The current site is : https://www.denverautohailspecialists.com/ Any advice would be appreciated.
Local Website Optimization | | arzawacki2 -
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 -
Best SEO Option for Multi-site Set-up
Hi Guys, We have a Business to Business Software Website. We are Global business but mainly operate in Ireland, UK and USA. I would like your input on best practice for domain set-up for best SEO results in local markets. Currently we have: example.com (no market specified) and now we are creating: example.com/ie (Ireland) example.com/uk (united kingdom) example.com/us (united states) My question is mainly based on the example.com/us website - should we create example.com/us for the US market OR just use example.com for the US the market? If the decision is example.com/us should we build links to the directory or the main .com website. To summarize there is two questions: 1. Advise on domain set-up 2. Which site to build links to if example.com/us is the decision. Thank you in advance, Glen.
Local Website Optimization | | DigitalCRO0 -
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 -
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 -
Same blog, multiple languages. Got SEO concerns.
Hi, My company runs a small blog in swedish. Most of the visitors are our customers/prospects. We will write about generic concepts regarding our business and the occasional company news story. However, I have quite a few ideas for articles that could be interesting to a lot of people, and I'm tempted to write those in english for better exposure. I would love it if that exposure could boost my companies authority. How should I go on about this? Can I somehow tell search engines that a certain part or page of the site is in another language? Should I translate our entire site to english and post the english post in a separate blog feed? Any insight is welcome. Thanks in advance!
Local Website Optimization | | Mest0 -
Short EMD or Longer Partial MD: Which is better for SEO
Hey Guys, I appreciate all of the amazing responses you have been posting over the last two days.
Local Website Optimization | | Web3Marketing87
I have been a little tied up with Joomla 1.5 transfers, but I will make some comments soon! In the meantime, here is an interesting one: I have an existing domain with a little bit of DA - www.edmontonweb.ca as well as a parked domain with no DA - launchwebdesign.ca I have been advised to redirect (301) to the launch domain, but I still wonder if the current domain is better - after all it is very short & was registered over 5 years ago. Since launching the new site it has been about a month. We are currently #1 for almost every term on Bing & Yahoo (web design, edmonton web design etc.) but 14th on Google for "edmonton web design." Do you think switching the domain is a good call, or keep trying with edmontonweb.ca for a bit longer? Thanks guys, Anton0