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
      • Digital Marketers
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • 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.

      • MozCon

        Save on Early Bird tickets and join us in London or New York City

      Unlock flexible pricing & new endpoints
      Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Digital Marketers

        Simplify SEO tasks to save time and grow your traffic.

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

      • 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
    2625
    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

      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

        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

          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 Reply Quote 0
          • RyanPurkey
            RyanPurkey @emerald last edited by

            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

              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 Reply Quote 0
              • RyanPurkey
                RyanPurkey last edited by

                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 Reply Quote 2
                • 1 / 1
                • First post
                  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

                • Rmarkjr81

                  Do old backlinks still help with new URL with 301 redirect? Also I added the www. How does this affect it all?

                  I changed my URL from exampledetailing. com to exampleautodetailing. com. It is redirected with a 301. Also, it is on Squarespace AND I opted to add the www. So will the old backlinks of exampledetailing. com still help the new URL exampleautodetailing. com or do I need to try and update all the links? Also, future links, do I need to include the www. or just the root domain of exampleautodetailing. com or even the whole https://wwwexampleautodetailing. com? I believe the www is considered a sub domain and a new entity on Google, so I am not sure how that works. Thank you!

                  Local Website Optimization | | Rmarkjr81
                  0
                • 100yards

                  I have a client in Australia that is going to set up a website that is in Chinese to service their Asian customer base (Indonesia, Singapore, HK, China). What domain should they use?

                  They're website is hosted on a .com.au domain. Should they host their Chinese language pages under their current domain (.com.au) using a subdirectory (i.e. /asia) or should they use another separate domain that they own that is a regular .com? Or does it really not matter?

                  Local Website Optimization | | 100yards
                  1
                • SeoSheikh

                  Do I need to change my country og:locale to en_AE

                  Hi MOZ, I have a site that is aimed at the English speaking market of the United Arab Emirates. The language tag is currently set to lang="en-GB" and the og:locale also set to en_GB. The domain is a .com and aimed at the whole world. Should I be trying to target en-AE and en_AE for these tags instead of GB?

                  Local Website Optimization | | SeoSheikh
                  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 | | empireelec
                  1
                • coolhandluc

                  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 | | coolhandluc
                  0
                • Adam_RushHour_Marketing

                  Subdomain for ticketing of a client website (how to solve SEO problems caused by the subdomain/domain relationship)

                  We have a client in need of a ticketing solution for their domain (let's call it www.domain.com) which is on Wordpress - as is our custom ticket solution.  However, we want to have full control of the ticketing, since we manage it for them - so we do not want to build it inside their original Wordpress install. Our proposed solution is to build it on tickets.domain.com.  This will exist only for selling and issuing the tickets. The question is, is there a way to do this without damaging their bounce rate and SEO scores?
                  Since customers will come to www.domain.com, then click the ticketing tab and land on tickets.domain.com, Google will see this as a bounce.  In reality, customers will not notice the difference as we will clone the look and feel of domain.com Should we perhaps have the canonical URL of tickets.domain.com point to www.domain.com? And also, can we install Webmaster Tools for tickets.domain.com and set the preferred domain as www.domain.com? Are these possible solutions to the problem, or not - and if not, does anyone else have a viable solution? Thank you so much for the help.

                  Local Website Optimization | | Adam_RushHour_Marketing
                  0
                • kinimod

                  SEO: .com vs .org vs .travel Domain

                  Hi there, I am new to MOZ Q&A and  first of all I appreciate all the folks here that share their expertise and make everyone understand 'the WWW' a bit better. My question: I have been developing a 'travel guide' site for a city in the U.S. and now its time to choose the right domain name. I put a strong focus on SEO in terms of coding, site performance as well as content and to round things up I'd like to register the _best _domain name in terms of SEO. Let's suppose the city is Atlanta. I have found the following domain names that are available and I was wondering whether you guys could give me some inside on which domain name would perform best. discoveratlanta.org
                  atlantaguide.org
                  atlanta.travel
                  atlantamag.com Looking at the Google Adwords Keyword tool the term that reaches the highest search queries is obviously "Atlanta" itself. Sites that are already ranking high are atlanta.com and atlanta.gov. So basically I am wondering whether I should aim for a new TLD like atlanta.travel or rather go with a .org domain. I had a look around and it seems that .org domains generally work well for city guides (at least a lot of such sites use .org domains). However, I have also seen a major US city that uses .travel and ranks first. On the other hand in New York, nycgo.com ranks well. Is it safe to assume that from the domain names I mentioned it really doesn't matter which one I use since it wouldn't significantly affect my ranking (good or bad)? Or would you still choose one above the other? What do you generally thing about .travel domain names (especially since they are far more expensive then the rest)? I really appreciate your response to my question! Best, 
                  kinimod

                  Local Website Optimization | | kinimod
                  0
                • Berner

                  Does building multiple websites hurt you seo wise? Good or bad strategy?

                  HI,rategy. So I spoke to a local Colorado seo company and they suggested to find whatever keywords is the most searched under my GWT's and put .com behind it and build other sites for other keywords. I was curious about this type of strategy. Does this work? This seo guy said I could just get a DBA bank account and such for each domain name etc. I am not wanting to mislead anyone, but I am curious if for the sake of promoting other services, if creating other websites with partial and EMD's are worthwhile? Another issue I worry about is if I put my companies phone number, then next thing you know there is 3 or 4 sites that use that same phone number. To me this does not build trust with Google. But being I am learning, maybe this is a common strategy, or doomed from the start. Just curious what you think. Would you build other sites to try and rank for other services? Or keep one sites and maximize it? Thank you for your thoughts. I just do not want to pay $3000 per site if it will hurt not help.

                  Local Website Optimization | | Berner
                  0

                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

                Access all your tools in one place. Whether you're tracking progress or analyzing data, everything you need is at your fingertips.

                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.