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
-
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 -
Using IP Detection to Filter Directory Listings without Killing Your SEO?
I have a client who maintains a directory of surgeons across the United States (approx. 2,000 members at present), and wishes to use IP detection to dynamically filter their surgeon directory to a sub-set that is relevant to the geography of the visitor. At the same time, however, we want the pages in the surgeon directory to rank nationally for terms like "[insert specialty] surgeons". Any tips/best practices for implementing an IP detection solution without shooting yourself in the foot from an SEO perspective? Is it even possible? Thanks! Jeremy
Local Website Optimization | | Jeremy_Lopatin0 -
SEO Client not rankings in Google
Hello, I have a client that has continued to be problematic for my team and I. They have fair to middling rankings in Yahoo and Bing, but none in Google. I realize that they are three separate search engines each with their own criteria, but this client is the only one experiencing this problem. There is no significant duplicate content that can find, same with restrictions in the robots.txt file. These seems to be no reason why all my tools say that this client has no presence at all in google, especially when the client gains most of their traffic through Google. Can anyone assist me in finding out what is going wrong? Client website for reference: http://www.volvethosp.com/ Best, BeyondIndigo
Local Website Optimization | | BeyondIndigo0 -
How to approach SEO for a national website that has multiple chapter/location websites all under different URLs
We are currently working with a client who has one national site - let's call it CompanyName.net, and multiple, independent chapter sites listed under different URLs that are structured, for example, as CompanyNamechicago.org, and sometimes specific to neighborhoods, as in CompanyNamechicago.org/lakeview.org. The national umbrella site is .net, while all others are .orgs. These are not subdomains or subfolders, as far as we can tell. You can use a search function on the .net site to find a location near you and click to that specific local website. They are looking for help optimizing and increasing traffic to certain landing pages on the .net site...but similar landing pages also exist on a local level, which appear to be competing with the national site. (Example: there is a landing page on the national .net umbrella site for a "dog safety" campaign they are doing, but also that campaign has led to a landing page created independently on the local CompanyNameChicago.org website, which seems to get higher ranking due to a user looking for this info while located in Chicago.) We are wondering if our hands are tied here since they appear to be competing for traffic with all their localized sites, or if there are best practices to handle a situation like this. Thanks!
Local Website Optimization | | timfrick0 -
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 -
SEO Value in Switching to ".NYC" Domain?
Recently " .NYC" domains have become available for purchase to New York City based businesses. I own and operate a New York City commercial real estate firm, nyc-officespace-leader.com. New domain would be www.metro-manhattan.nyc Our existing domain has been in use for seven years.would there be an SEO benefit to transferring our site to .NYC domain? Or would a new domain kill our domain rank? Thanks, Alan
Local Website Optimization | | Kingalan10 -
Does the Location of my Server effect my SEO?
Does the geographic Location of my Server effect my SEO? HELP US! We are arguing for 3 weeks already. My partner has mentioned multiple times in the past that "since 2013 google does not require your server to be in the country you are targeting for seo"
Local Website Optimization | | DanielBernhardt
And that actually all they care about is if its a good and fast server - not where its physically located in the world. I am a strong believer that the geographic location of your server directly effects your SEO ranking... lets say if you want to target www.google.ru for your seo, best you have a server located in Russia for hosting your website.. WHO IS RIGHT? Choose the winner and base the facts.
If anybody has the correct answer and information to base it on it will help us alot - and maybe even spare some unnecessary violent between us two! we found some articles across the web, sadly they are all dated back to 2012.... Thanks in Advance for all the help guys!0 -
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