undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Local SEO
  4. Local Website Optimization
  5. Image URLs changed 3 times after using a CDN - How to Handle for SEO?

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?

Local Website Optimization
2
6
2.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • emerald
    emerald last edited by Mar 11, 2015, 10:03 AM

    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.

    1 Reply Last reply Reply Quote 0
    • RyanPurkey
      RyanPurkey @emerald last edited by Mar 13, 2015, 8:10 PM Mar 13, 2015, 8:10 PM

      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!

      1 Reply Last reply Reply Quote 0
      • emerald
        emerald last edited by Mar 13, 2015, 9:46 AM Mar 13, 2015, 9:46 AM

        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.jpg

        OR

        Redirect 301 /wp-content/uploads/2010/09/istanbul-boat-rental.jpg
        http://**CDN.**bosphorusyacht.com/wp-content/uploads/2010/09/istanbul-boat-rental.jpg

        OR

        How would I 301 this one?: username.net-dns.com/images/abc.jpg

        Hope you can advise one last time - thank you!

        RyanPurkey 1 Reply Last reply Mar 13, 2015, 8:10 PM Reply Quote 0
        • RyanPurkey
          RyanPurkey @emerald last edited by Mar 12, 2015, 3:34 PM Mar 12, 2015, 12:49 PM

          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.

          1 Reply Last reply Reply Quote 2
          • emerald
            emerald @RyanPurkey last edited by Mar 12, 2015, 3:34 PM Mar 12, 2015, 11:20 AM

            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!

            RyanPurkey 1 Reply Last reply Mar 12, 2015, 12:49 PM Reply Quote 0
            • RyanPurkey
              RyanPurkey last edited by Mar 12, 2015, 3:34 PM Mar 11, 2015, 7:10 PM

              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!

              emerald 1 Reply Last reply Mar 12, 2015, 11:20 AM Reply Quote 2
              • 1 / 1
              1 out of 6
              • First post
                1/6
                Last post

              Got a burning SEO question?

              Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


              Start my free trial


              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.

              • See all categories

              Related Questions

              • jasongmcmahon

                SEO Best Practice for Managing a Businesses NAP with Multiple Addresses

                I have a client with multiple business addresses - 3 across 3 states, from an SEO perspective what would be the best approach for displaying a NAP on the website? So far I've read that its best: to get 3 GMB account to point to 3 location pages & use a local phone number as opposed to a 1300 number. Display all 3 locations in the footer, run of site

                Local Website Optimization | Feb 25, 2019, 3:14 PM | jasongmcmahon
                1
              • mkbeesto

                Subdomain vs. Separate Domain for SEO & Google AdWords

                We have a client who carries 4 product lines from different manufacturers under a singular domain name (www.companyname.com), and last fall, one of their manufacturers indicated that they needed to move to separate out one of those product lines from the rest, so we redesigned and relaunched as two separate sites - www.companyname.com and www.companynameseparateproduct.com (a newly-purchased domain). Since that time, their manufacturer has reneged their requirement to separate the product lines, but the client has been running both sites separately since they launched at the beginning of December 2016. Since that time, they have cannibalized their content strategy (effective February 2017) and hacked apart their PPC budget from both sites (effective April 2017), and are upset that their organic and paid traffic has correspondingly dropped from the original domain, and that the new domain hasn't continued to grow at the rate they would like it to (we did warn them, and they made the decision to move forward with the changes anyway). This past week, they decided to hire an in-house marketing manager, who is insisting that we move the newer domain (www.companynameseparateproduct.com) to become a subdomain on their original site (separateproduct.companyname.com). Our team has argued that making this change back 6 months into the life of the new site will hurt their SEO (especially if we have to 301 redirect all of the old content back again, without any new content regularly being added), which was corroborated with this article. We'd also have to kill the separate AdWords account and quality score associated with the ads in that account to move them back. We're currently looking for any extra insight or literature that we might be able to find that helps explain this to the client better - even if it is a little technical. (We're also open to finding out if this method of thinking is incorrect if things have changed!)

                Local Website Optimization | May 20, 2017, 10:43 AM | mkbeesto
                0
              • Discovered

                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.
                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! Gijsbert

                Local Website Optimization | Apr 3, 2017, 11:23 PM | Discovered
                0
              • LauraFalls

                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 | Jul 29, 2016, 3:20 PM | LauraFalls
                0
              • empireelec

                Does multiple sites that relate to one company hurt seo

                I know this has been asked and answered but my situation is a little different. I am a local electrical contractor.  I specialize in a service and not a product.  Competition is high in the local market due to the other electrical contractors that have well seasoned sites with very good DA/PA.  Although new to the web I am not new to the trade.  Throughout years almost back to the AOL dialup days I have been collecting domain names for this particular purpose.  Now I want to put them to good use. Being an electrical contractor, there are many different facets of work and services we provide. My primary site is empireelec.com A second site I threw online overnight with minimal content is jacksonvillelightingrepair.com.  Although it is a fresh site, there is minimal content and I have put almost zero effort in to it.  It appears to be ranking for keywords a lot quicker. That leads me to believe I should utilize my other domain jacksonvillefloridaelectrician.com and target just the keyword Jacksonville Florida Electrician. It leads me to believe I should use jacksonvillebeachelectrician.com for targeting electricians in jacksonville beach. And again with jacksonvilleelectricianservice.com I can provide a unique phone number for each site. Am I going about this all wrong?  Everything I read says no,no,no but I feel my situation is a little more unique.

                Local Website Optimization | Nov 3, 2017, 5:15 PM | empireelec
                1
              • KempRugeLawGroup

                Does it matter how or what site you use to GeoTag your photos?

                I found a site that was very easy for me to upload my pictures, add the coordinates, download it and put it on my site. The site is GeoImgr.com, but it's not nearly as popular as some of the other's out there. Does that matter? I'm under the impression that as long as the GPS coordinates show up in the XIF Viewer, then I've gotten whatever benefit (albeit slight) there is to get. Is that correct? Or is there something about tagging them from the more popular sites like Flickr or Panaramio? Thanks, Ruben

                Local Website Optimization | Oct 14, 2015, 3:42 PM | KempRugeLawGroup
                0
              • NAHL-1430

                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 | Oct 19, 2015, 5:12 PM | NAHL-1430
                0
              • otex

                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 | Jun 15, 2015, 3:16 AM | otex
                1

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy

              Looks like your connection to Moz was lost, please wait while we try to reconnect.