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!
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
-
Weird SEO Problem - No Longer Ranking in Some Areas
Hi Everyone, I’ve got a weird SEO issue that I hope you’ll be able to help with. I’ve broken it down in to the key points below: Impressions for our primary and secondary keywords dropped dramatically on 02.10.17. Impressions have only dropped on non geographical keywords. “UK” variants are still ranking well. Investigation shows we’re not ranking outside of London at all for primary and secondary keywords. Primary and secondary keywords are still ranking well in London, the city where we’re based We’ve looked at our competition who do rank for the primary keyword both in and outside London. We noticed we have our “postaladdress” in our schema. The competition don’t have their address in their schema. We updated our schema 2 weeks ago and now use the Yoast schema which is the same as our competitors use. Approx 1 week after removing the schema we started showing up for primary and secondary keyword again, but very low - fluctuating between page 15 and page 24. It’s been 2 weeks now and no improvement. AHREFS and google webmaster, both incorrectly detail that we rank top 5. Which is true to a degree, but only in London. Thank you in advance!
Local Website Optimization | | rswhtn0 -
Using posts to make static pages - A best practice or a bad idea?
I have started working with a few law firms this year. They already have websites and I am doing various marketing tasks such as copywriting, redesigns, and, of course, SEO. In a couple of cases I was surprised to find that they had made the pages describing their various practice areas post content. I'm not sure why. But I suspect that the idea might have been to have the phrase: /practice-areas/ as a part of their URL. I didn't really like the idea of treating pages like posts. It seems a bit like working the system. But apart from that, wouldn't pages have a higher value as "permanent" content? As posts - their publish date has more weight, right? And they'd get old? But maybe the previous developers were on to something and the category/post approach to listing practice areas is the way to go? I am starting a new site for a new firm and I'd like to feel more confident about the right structure to choose for this kind of website before I start. Does anybody know the right answer? Thanks!
Local Website Optimization | | Dandelion1 -
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 -
Using geolocation for dynamic content - what's the best practice for SEO?
Hello We sell a product globally but I want to use different keywords to describe the product based on location. For this example let’s say in USA the product is a "bathrobe" and in Canada it’s a "housecoat" (same product, just different name). What this means… I want to show "bathrobe" content in USA (lots of global searches) and "housecoat" in Canada (less searches). I know I can show the content using a geolocation plugin (also found a caching plugin which will get around the issue of people seeing cached versions), using JavaScript or html5. I want a solution which enables someone in Canada searching for "bathrobe" to be able to find our site through Google search though too. I want to rank for "bathrobe" in BOTH USA and Canada. I have read articles which say Google can read the dynamic content in JavaScript, as well as the geolocation plugin. However the plugins suggest Google crawls the content based on location too. I don’t know about JavaScript. Another option is having two separate pages (one for “bathrobe” and one for “housecoat”) and using geolocation for the main menu (if they find the other page i.e. bathrobe page through a Canadian search, they will still see it though). This may have an SEO impact splitting the traffic though. Any suggestions or recommendations on what to do?? What do other websites do? I’m a bit stuck. Thank you so much! Laura Ps. I don’t think we have enough traffic to add subdomains or subdirectories.
Local Website Optimization | | LauraFalls0 -
Hiring an SEO Company
I am looking to hire an SEO company each have there own ideas and strengths. My concerns are what is good and what is bad. Here is one company where their Silver Package fits within our budget. But there are a lot of features on here we do know if is it good or bad SEO. I attached the packages they send us. If we were to hire an SEO Company to do our offsite SEO, what should we be looking for that is considered whitehat seo for 2015? zCJowNb
Local Website Optimization | | TIM_DOTCOM0 -
SEO and Redirecting Site to a Different Firm's Domain while Maintaining Current Domain's Rankings
I am a plaintiffs' attorney with a website that ranks well for my major practice areas. I am considering taking a position with a new firm. As part of the discussion, the new firm would allow me to keep my current site so long as it redirects to my bio page on their firm's site. My goal is to keep my current site ranking well and continuously work on SEO efforts, in case I leave the new firm and want to rely on my current site in the future. My questions are: Is there a way to redirect my site every time it shows up in the listings (I have 1000+ indexed pages) without sacrificing its current rankings b/c of bounce rate issues, etc and 2) If I continue to add pages and work on SEO for my site while it redirects to another, will those efforts be worthwhile due to the redirect? I want to keep trying to build my site even though it redirects to a page on a different domain.
Local Website Optimization | | crpoll0 -
Local SEO In A Different Language
I am pretty new to web design and SEO, so I am sure I have completely done this wrong. I work for a U.S. based equipment dealer and before I started working here my company incorporated in Canada under "(our main product) of Canada". Even before we had any SEO work done on our website, we ranked in the top 3 across Canada for our main product. The one exception to this was Quebec where we rarely got any traffic due to the language barrier. We started working to fix this last summer using the Montreal Consulate, our SEO company at the time and a translator. They each gave me the same French translation of our Company name and I had them translate the 8 most visited pages on our existing site. I then created a replica of our existing site, hosted it on the French translation of our name and started running inbound links to this site from our U.S. and Canada sites. The first thing I am wondering is if there's any issue with this practice? We have had good results so far and traffic from Quebec is way up across our three sites. The second issue I have is we just hired our first employee in Quebec and found a partner there. They are both adamant that the translation we are using is incorrect. I own the domain for the correct translation they are suggesting but I have no idea how to go about it. Any suggestions?
Local Website Optimization | | DohenyDrones0 -
Having portal page that takes you to website with a different url
We are in the planning stages for this. Our client wants his (as yet) domain name to be a portal page for this new campaign. His domain name is a non-keyword company name (i.e. widgetsgalore.com) We already have a website with content tailored to his business ready to go. In fact, we did a campaign back in '06 to '09 that was highly successful. At that time it was just the webpage with a keyword rich url. Now for some reason the client wants his company name url (widgetsgalore.com) to be the portal page (landing page) that once potential clients click on it takes them to the website with the content. What are the pros and cons of doing what client asks about making his widgetsgalore.com a portal page vs. going directly to the url with all the content/forms, etc? This is a local site, with audience limited to southern california.
Local Website Optimization | | Manifestation0