Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
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
-
How many SEO clients do you handle?
I work in a small web & design agency who started offering SEO 2 yrs ago as it made sense due to them building websites. There have been 2 previous people to me and I now work there 3 days a week and they also have a junior who knew nothing before she started working for us. She mainly works for me. My question is, how many clients do you think would be reasonable to work on? We currently have around 55 and I have been working there for nearly 5 months now and haven't even got to half of the sites to do some work on. I've told them the client list is way too big and we should only have around 15 clients max. However they don't want to lose the money from the already paying clients so won't get rid of any and keep adding new ones Their systems were a mess and had no reporting or useful software so I had to investiagte and deploy that, along with project management software. Their analytics is also a mess and have employed a contractor to help sort that out too. It's like they were offering SEO services but had no idea or structure to what they did. Meta descriptions were cherry picked which ones to be done, so say 50/60 on a site not filled in. So it's not like I have 45 or so well maintained accounts. They're all a mess. Then the latest 10 new ones are all new sites so All need a lot of work. I'm starting to feel incredibly overwhelmed and oppressed by it all and wanted to see what other SEO professionals thought about it. Any thoughts would be appreciated.
Local Website Optimization | | hanamck0 -
Impact of .us vs .com on SEO rankings?
Our website is hosted on www.discovered.us. I have 2 questions: 1: we have had regular feedback a .us domain is negative in SEO and in conversion (customers don't like it). We are thinking of changing domain to: www.dscvrd.com.
Local Website Optimization | | Discovered
Any insights on the impact on our rankings (if any) if we do this? 2: we are focusing our SEO global / USA first but conversions in UK are better. We currently do not have multi-language SEO setup. What would the impact be of implementing www.discovered.co.uk on SEO in UK? Thanks! Gijsbert0 -
Google my business - Image sizes
I have scoured the web in order to find a guide that would give me the ideal dimensions for images to populate google my business page... in vain. Google itself is very vague about it as indicated below Format: JPG, PNG, TIFF, BMP Size: Between 10 KB and 5 MB Minimum resolution: 250px tall, 250px wide Does anyone know of a guide with optimum recommendation for each photo (profile, Cover photo, business specific photos...) or alternatively can recommend the exact size needed. Thanks
Local Website Optimization | | coolhandluc0 -
Country/Language combination in subdirectory URL
Hello, We are a multi country/multi lingual (English, Arabic) website. We are following a subdirectory structure to separate and geotarget the country/language combinations. Currently our english and arabic urls are the same: For UAE: example.com/ae (English Site) For Saudi Arabic: example.com/sa (Saudi Arabia) We want to separate the English and Arabic language URLs and I wanted to know if there is any preference as to which kind of URL structure we should go with : example.com/ae-en (Country-Language) example.com/en-ae (Language-Country) example.com/ae/en (Country/Language) Is there any logic to deciding how to structure the language/country combinations or is is entirely a matter of personal preference. Thanks!
Local Website Optimization | | EcommRulz0 -
Local SEO for National Brands
Hi all, When it comes to local SEO in 2015, I appreciate that having a physical location in the town/city you wish to rank is a major factor. However, if you're a national brand is it still possible to rank for local searches when you're based in one location? The reason I ask is that, although our service is national, the nature of what we offer means that it is not inconceivable that people would search for a local variation of our top keywords. Other than the standard things - location in the content, the H1/H2s, title tag, meta description, url etc. - is there anything national businesses can do to help? Thanks in advance. John
Local Website Optimization | | NAHL-14300 -
Should I use pipe in title tags for local seo?
Hi, I've created a bunch of landing pages for local areas, reading, windsor, slough etc for the title tag I have for Windsor Emergency Electrician Windsor - BrandName should I be using a pipe in the tag to further help search engines learn/identify the location? Emergency Electrician | Windsor - BrandName Thank you Kev
Local Website Optimization | | otex1 -
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 -
Is translating my SEO meta data to new languages worthwhile?
When translating a website to additional languages, is it recommended, for Google SEO purposes, that the keywords, re-written URLs, meta titles and meta descriptions of each page be translated as well; or have those elements been completely depreciated?
Local Website Optimization | | sptechnologies0