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 URL and rel=canonical structure to use for location based product inventory pages?
I am working on an automotive retailer site that displays local car inventory in nearby dealerships based on location. Within the site, a zip code is required to search, and the car inventory is displayed in a typical product list that can be filtered and sorted by the searcher to fit the searchers needs. We would like to structure these product inventory list pages that are based on location to give the best chance at ranking, if not now, further down the road when we have built up more authority to compete with the big dogs in SERP like AutoTrader.com, TrueCar.com, etc. These higher authority sites are able to rank their location based car inventory pages on the first page consistently across all makes and models. For example, searching the term "new nissan rogue" in the Los Angeles, CA area returns a few location based inventory pages on page 1. The sites in the industry that are able to rank their inventory pages will display a relatively clean looking URL with no redirect that still displays the local inventory like this in the SERP:
Local Website Optimization | | tdastru
https://www.autotrader.com/cars-for-sale/New+Cars/Nissan/Rogue
but almost always use a rel=canonical tag within the page to a page with a location parameter attached to the end of the URL like this one:
https://www.autotrader.com/cars-for-sale/New+Cars/Nissan/Rogue/Los+Angeles+CA-90001"/>
I'm having a hard time figuring out why sites like this example have their URLs and pages structured this way. What would be the best practice for structuring the URL and rel=canonical tags to be able to rank for and display location based inventory pages for cars near the searcher?0 -
Local SEO + Searcher Intent Targeting for Home Builder
Good Morning, All! I work for a home builder - www.HibbsHomes.com. Their site has hundreds of pages and blogs and I'm looking at consolidating many of them as they're older and use an older SEO strategy. Can you take a look at their portfolio? http://hibbshomes.com/custom-home-builders-st-louis/st-louis-custom-homes-portfolio/ I'm wondering if I should consolidate the various projects into their own pages by house type and city - rather than having all on one page? Both for SEO and for easier searchability. How would you organize this for these? The benefit to setting up city pages is the local SEO rank (St Louis has so many suburbs). The benefit to setting up pages by home style or size would be for user experience. How do I improve this for both? And... how do I optimize for conversions better?
Local Website Optimization | | stldanni1 -
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 -
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 -
Listing bundle info on site and on local SEO page.
We just finished a new telecom site, and like all telecom sites (think AT&T, Verizon, Suddenlink, etc.), we allow people to put their location in and find internet and phone service packages (what we call bundles) unique to their area. This page also has contact information for the local sales team and some unique content. However, we're about to start putting up smaller, satellite pages for our local SEO initiative. Of course, these pages will have unique content as well, but it will have some of the same content as what's on the individual bundle page, such as package offerings, NAP, etc. Currently this is the URL structure for the bundles: domain.com/bundles/town-name/ This is what I'm planning for the local SEO pages: domain.com/location/town-name-state/ All local FB pages, Google listings, etc. will like to these location pages, rather than the bundle pages. Is this okay or should I consolidate them into one?
Local Website Optimization | | AMATechTel0 -
Updated site with new Url Structure - What Should I expect to happen ?. Also it's showing PR 1 for my urls on Opensite explorer
Hi All, We updated our website with a new url structure. Apart from the root domain , everyother page is showing up in opensite explorer with a page rank 1. Although we only went live with this yesterday, I would have thought that the 301's etc from the old urls would be coming through and the PR would show ?.. I am not familiar what to expect or what alarms bells I need to watch out for when doing this type of thing although I would probably expect a small drop in traffic ?..I don;t know what the norm is though so Any advice greatly appreciated? thanks PEte
Local Website Optimization | | PeteC120 -
Merging two pages into one - bad seo done previously
Hi, I have two pages Page 1
Local Website Optimization | | Syed_Ozair
/stop-smoking-hypnotherapy.php
Page authority: 24 and Page 2
/stop-smoking-in-highgate-north-london-radlett-hertfordshire-and-city-of-london.php
Page authority: 13 with 2 internal links only This was probably done to get more local searches to the page but i think it is a bit spamy. Would it be better to 301 page 2 to page 1 or make it as a blog post and keep it alive?0 -
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