I have an image on my site that I want listed in GoogleI'm looking for a trick/workaround. So I've triedMy years-old scheme for serving different versions of a page to includedifferent devices works great ...except it in my sitemap so Google can easily be awaredoesn't mesh well with Google's handling of itimage sitemaps. It's hosted inside
Each of my pages is actually implemented as a page that's marked NOINDEX"set" of pages, one "generic" (theand canonical) entry page is accessible but is overly device-specific, and so is not an appropriate entryseveral "phantom" pages. The generic/landing page) sniffs its environment, then vectors to the best fit specific phantom page. How do I describe this situationOnly the generic page appears in a sitemap?Google's index, not any of the phantom pages that are also part of the page-set. This scheme has worked fine for several years.
CurrentlyThe new twist is I now want Google tries to index not onlylist some of my images, and am constructing a sitemap. My question is how to list the "hosting" page for an image but alsoin the sitemap. My actual hosting page for each image is one of my phantom pages; the generic page hosts only thumbnails.
The current -clearly incorrect- situation is the sitemap lists the actual phantom page as "hosting" the image, and that phantom page is marked NOINDEX (and uses rel="canonical" to point at the generic page). When Google crawls this, thenit complains that a listed page is marked NOINDEX. The page isFurther, if a user asks Google to visit the image, they are presented with the literal sitemap XML (or shouldrather than a graphic page displaying images) NOT be listed, but.
How can I can't figure outconstruct a sitemap so Google [visit] displays correctly, yet only the syntax for describinggeneric page (not any of the imagephantom pages in my sitemap and pointing to its hosting page, but without that hostingthe page being available-set) is included in its index?
EDIT: April 2021 - the question was heavily edited for indexingclarity, as the initial answers suggested the question could be easily misunderstood.