Skip to main content
the question was heavily edited for clarity
Source Link

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.

I have an image on my site that I want listed in Google. So I've tried to include it in my sitemap so Google can easily be aware of it. It's hosted inside a page that's marked NOINDEX (the page is accessible but is overly device-specific and so is not an appropriate entry page). How do I describe this situation in a sitemap?

Currently Google tries to index not only the image but also the hosting page, then complains that a listed page is marked NOINDEX. The page is (or should) NOT be listed, but I can't figure out the syntax for describing the image in my sitemap and pointing to its hosting page, but without that hosting page being available for indexing.

I'm looking for a trick/workaround. My years-old scheme for serving different versions of a page to different devices works great ...except it doesn't mesh well with Google's handling of image sitemaps.

Each of my pages is actually implemented as a "set" of pages, one "generic" (and canonical) entry page, and several "phantom" pages. The generic/landing page sniffs its environment, then vectors to the best fit specific phantom page. Only the generic page appears in 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.

The new twist is I now want Google to list some of my images, and am constructing a sitemap. My question is how to list the "hosting" page for an image in 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, it complains that a listed page is marked NOINDEX. Further, if a user asks Google to visit the image, they are presented with the literal sitemap XML (rather than a graphic page displaying images).

How can I construct a sitemap so Google [visit] displays correctly, yet only the generic page (not any of the phantom pages in the page-set) is included in its index?

EDIT: April 2021 - the question was heavily edited for clarity, as the initial answers suggested the question could be easily misunderstood.

Source Link

How list in sitemap an image that's hosted by a NOINDEX page?

I have an image on my site that I want listed in Google. So I've tried to include it in my sitemap so Google can easily be aware of it. It's hosted inside a page that's marked NOINDEX (the page is accessible but is overly device-specific and so is not an appropriate entry page). How do I describe this situation in a sitemap?

Currently Google tries to index not only the image but also the hosting page, then complains that a listed page is marked NOINDEX. The page is (or should) NOT be listed, but I can't figure out the syntax for describing the image in my sitemap and pointing to its hosting page, but without that hosting page being available for indexing.