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
-
Using the Onpage Grader for Local Business websites
Hey Guys, Curious how people use the onpage grader for optimizing pages for local businesses specifically, I'm interested if people use keywords with or without a geo modifier since adding a geo modifier will prevent more natural writing to increase the score. If you don't use a geo modifier do you have some general rules of the city that needs to be in the H1 and first paragraph etc. Any tips for using the page grader for local businesses would be great Thanks!
Local Website Optimization | | solidlocal0 -
Local SEO Over Optimization
We are targeting a bunch of services for our local business that works in and around their location. I'm concerned about over optimization and need some guidance on whether these points should be resolved. The company is based in a city and works mostly in the city but also in the surrounding areas. Currently, the site has 6 services pages (accessible via main nav) targeting the same location i.e. “Made Up Service London”, “Imaginary Service London” (with URLs and H1 tags etc. in place containing this location). However this is soon going to become 9 services pages, I am concerned that the repetition of this one location is starting to look spammy, especially as its where the company is based. Initially, I also wanted pages targeting the same services in other nearby areas. For example “Made Up Service Surrey”, “Imaginary Service Essex”. This has not happened as the info available has been too sporadic. I was going to add links to relevant case studies into these pages to beef up the content and add interest. To that end, we came up with case studies, but after a while, I noticed that these are also largely focused on the primary location. So out of 32 case studies, we have 19 focused on the primary location again with URL’s and H1 tags etc containing the location keyword. So in total, we have 25 pages optimized for the location (soon to be 28 and more if further case studies are added). My initial feeling was that the inclusion of pages targeting services in other locations would legitimize what we have done with the main pages. But obviously we have not got these pages in place and I question whether we ever will. What is my best course of action moving forward?
Local Website Optimization | | GrouchyKids1 -
Hreflang: customize, selection the best URL structure
Hi All,
Local Website Optimization | | SergeyFufaev
We have two websites:
example.info - this is a working site in Russian hreflang="ru"
example.com - this new site We want to start with US. For the US, we will have: local address and phone, currency in $, fully translated content.
In the future we want to expand the business (ie en-GB, en-CA, de-DE, fr-CA, fr-FR). For each country, a regional dialect, currency, address and telephone number will be used. I need to choose the right URL structure so that there won't be problems in the future. 1. When configuring geotargeting (ie fr-CA and en-CA ) in the URL of the page specify: • http://example.com/ca/ - hreflang="en-CA" - Can use Search Console geotargeting
• http://example.com/ca/fr/ - hreflang="fr-CA"
or
• http://example.com/en-ca/ - hreflang="en-CA" - Can I use a geo-targeting search console?
• http://example.com/fr-ca/ - hreflang="fr-CA" .
or
• http://example.com/ca-en/ - hreflang="en-CA" - Can I use a geo-targeting search console?
• http://example.com/ca-fr/ - hreflang="fr-CA" . quote: To geotarget your site on Google:
o Page or site level: Use locale-specific URLs for your site or page. 2. If I set the target (ie "en-CA", "fr-CA" and "fr-FR"). Can I use the page http://example.com/fr/ with customized targeting (hreflang = "fr-FR") for french speakers worldwide (hreflang= "fr"), ie: french speakers worldwide quote: "If you have several alternate URLs targeted at users with the same language but in different locales, it's a good idea also to provide a catchall URL for geographically unspecified users of that language. For example, you may have specific URLs for English speakers in Ireland (en-ie), Canada (en-ca), and Australia (en-au), but should also provide a generic English (en) page for searchers in, say, the US, UK, and all other English-speaking locations. It can be one of the specific pages, if you choose." 3. Where is it better to place select of language and country on the page?
Header, footer, pop-up window ......
The page http://example.com will be used for hreflang = "en". In my case, do I need x-default? Can I use a page with hreflang="en"configured as the x-default version? ie: Is it right?0 -
How to direct the right countries to different URLS.
Hello, I have one site that has 3 different "sites" sitting within. .com/us/shop - Serves the US and Mexico How do i point US and Mexico to .com/us/shop .com/eu/shop - Serves all countries in Europe excluding the UK How do I point Spain, France, Italy, Germany to the .com/eu/shop .com/shop - Serves the UK and all other ROW countries. How do i point UK, China, Russia, Hong Kong to .com/shop Thanks
Local Website Optimization | | MarniFP0 -
International SEO - How to rank similar keys for differents countries
Hello MOZ friends.
Local Website Optimization | | NachoRetta
I work in an digital marketing agency in Argentina and since we have a lot of traffic from other Spanish-speaking countries like Mexico and Spain, we want to rank specific keywords for these countries.
We were thinking of putting new versions of the homepage in subfolders, for example /es/ for Spain, /mx/ to Mexico, etc. In these new subfolders we would place a very similar version of the homepage with a few minor modifications to work specific keywords in each country. For example, in Spain it is more searched "marketing online", and "marketing digital" is more used in Mexico and Argentina.
I have understood that to implement this we would be to place a label hrflang on the homepage directing visitors and crawlers to the correct version of each country. Is it ok?
Another concern is, whether they are very similar pages, Google does not take it as duplicate content ..
I read this:
https://moz.com/blog/the-international-seo-checklist
And i am not completely sure about using subfolders for each country, but i dont know how to position diferents keywords for diferent countries.
Regards,
Juan Ignacio Retta0 -
Moving to a new Location: SEO Website
I'm moving to a different state and want to keep my business and clients in both locations. Is it better to build two separate sites, one for Ohio locations and create a new site for Tennessee content? (www.ohiosite.com & www.tennesseesite.com) Or is it best to keep one site, and install a second wordpress site in a separate folder like ( www.site.com + www.site.com/tennessee )
Local Website Optimization | | morg454540 -
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 -
One location performing worse than the rest despite no major difference in SEO strategy
Hi all, I'm flummoxed. I'm dealing with a business that has 15 or so offices in three cities, and one city is performing horribly (this includes every office therein). The other two cities have shown consistently stellar results with massive traffic increases month over month for the past year; the city in question dropped unexpectedly in June and hasn't ever recovered. We didn't perform any major website changes during or immediately prior to that time period, and the website in general hasn't been negatively affected by Hummingbird. All locations for the business are optimized in the exact same way and according to best practices; there's no significant difference in the number of local listings, reviews, G+ fans, social signals, etc across locations. All meta data and content is optimized, NAPs are all consistent, we've built links wherever we can: the SEO for every location has been by-the-books. We've run a competitor audit in this particular city that included pulling our top competitors and exploring their domain authority, meta data, on-page keyword grade for the term we're trying to rank for, number and type of inbound links, social signals, and more; and we didn't spot any patterns or any websites that were significantly outperforming us in any area (besides actual rankings). It's frustrating because the client is expecting a fix for this city and I can't find anything that needs to be fixed! Have any multi-local SEOs out there run into a similar problem? What did you do about it?
Local Website Optimization | | ApogeeResults0