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
-
SEO Best Practice for Managing a Businesses NAP with Multiple Addresses
I have a client with multiple business addresses - 3 across 3 states, from an SEO perspective what would be the best approach for displaying a NAP on the website? So far I've read that its best: to get 3 GMB account to point to 3 location pages & use a local phone number as opposed to a 1300 number. Display all 3 locations in the footer, run of site
Local Website Optimization | | jasongmcmahon1 -
Can I use Schema zip code markup that includes multiple zip codes but no actual address?
The company doesn't have physical locations but offers services in multiple cities and states across the US. We want to develop a better hyperlocal SEO strategy and implement schema but the only address information available is zip codes, names of cities and state. Can we omit the actual street address in the formatting but add multiple zipcodes?
Local Website Optimization | | hristina-m0 -
Looking to create a "best practice" doc on location pages. Anyone know of a useful resource?
I'm working for a few regional brands and would like to create a best practice doc for the structure of a location page. Has anyone seen anything recent regarding a structure for local, regional and national pages? Thanks all, Kevin
Local Website Optimization | | Kevin.Bekker1 -
URL and title strategy for multiple location pages in the same city
Hi, I have a customer which opens additional branches in cities where he had until now only one branch. My question is: Once we open new store pages, what is the best strategy for the local store pages in terms of URL and title?
Local Website Optimization | | OrendaLtd
So far I've seen some different strategies for URL structure:
Some use [URL]/locations/cityname-1/2/3 etc.
while others use [URL]/locations/cityname-zip code/
I've even seen [URL]/locations/street address-cityname (that's what Starbucks do) There are also different strategies for the title of the branch page.
Some use [city name] [state] [zip code] | [Company name]
Other use [Full address] | [Company name]
Or [City name] [US state] [1/2/3] | [Company name]
Or [City name] [District / Neighborhood] [Zip Code] | [Company name] What is the preferred strategy for getting the best results? On the one hand, I wish differentiate the store pages from one another and gain as much local coverage as possible; on the other hand, I wish to create consistency and establish a long term strategy, taking into consideration that many more branches will be opened in the near future.1 -
Understand how site redesign impacts SEO
Hi everyone, I have, what I think, is kind of a specific question, but hoping you guys can help me figure out what to do. I have a client that recently changed their entire website (I started working with them after it happened, so I can't comment on what the site was like as far as content was before). I know they were using a service that I see a lot of in the service industry that aim to capitalize on local business (i.e. "leads nearby" or "nearby now") by creating pages for each targeted city and I believe collecting reviews for each city directly on the website. When they redesigned their website, they dropped that service and now all those pages that were ranking in SERPs are coming back as 404s because they are not included in the new site (I apologize if this is getting confusing!) The site that they moved to is a template site that they purchased the rights to from an already successful company in their same industry, so I do think the link structure probably changed, especially with all of the local pages that are no longer available on the site. Note: I want to use discretion in using company names, but happy to share more info in a private message if you'd like to see the sites I am talking about as I have a feeling that this is getting confusing 🙂 Has anyone had experience with something like this? I am concerned because even though I am targeting the keywords being used previously to direct content to the local pages to new existing pages, traffic to the website has dropped by nearly 60% and I know my clients are going to want answers-- and right now, I only have guesses. I am really looking forward to and so greatly appreciate any advice you might be able to share, I'm at a bit of a loss right now.
Local Website Optimization | | KaitlinNS0 -
Local Ranking Power of a Multi-Keyword URL?
Here is a site that is sitting at number 1 on Google UK (local results) for a number of its keywords: http://www.scottishdentistry.com/ If you look at the links in the navigation many of them have urls such as this: http://www.scottishdentistry.com/glasgow-scotland-dentistry/glasgow-scotland-hygienists.html These have clearly been created to be keyword rich. For example, there is no publicly-available page at: http://www.scottishdentistry.com/glasgow-scotland-dentistry Do you think this tactic has helped with the site's rankings? Is it worth imitating? Or will it ultimately attract a penalty of some kind? Remember this is in the UK where Google seems to be slower at penalising dodgy tactics than in the US. Thanks everyone.
Local Website Optimization | | neilmac0 -
Should I use keywords in all my URLs?
I couldn't find anything online that really covers my exact question. If I wanted to change my home page URL, (currently along the lines of "http://example.com/home") would it be a good idea to change it to "http://example.com/dallas-auto-repair"? Then on the "services page" I might change the URL to "http://example.com/dallas-auto-services". Pages like the contact page would probably remain simply "example.com/contact" Theoretically by putting my main keywords right there in the URL, I would imagine that I could get moved up in the SERPs. Am I wrong? So if this is a bad idea, please let me know why. If this is a good idea, do you have any articles or references that cover this, or even personal experience?
Local Website Optimization | | Marshall_Motors0 -
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