• Resolved linux4me2

    (@linux4me2)


    I was getting a soft 404 from Google Search on /litespeed-cache/guest.vary.php, so I added the following to my robots.txt file:

    Disallow: /wp-content/plugins/litespeed-cache/guest.vary.php

    That fixed the soft 404, but now Google sent me an alert for that page that says:

    Search Console has identified that your site is affected by 1 Page indexing issue(s). The following issues were found on your site.

    Top Issues

    • Blocked by robots.txt

    We recommend that you fix these issues when possible to enable the best experience and coverage in Google Search.

    Well, yes, I blocked that page in robots.txt.

    I have resolved this type of issue before by adding a meta “noindex” tag on affected pages instead of disallowing them in my robots.txt, but I don’t see a way to do so with guest.vary.php.

    Is there a better way to handle this other than ignoring Google’s alerts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please add this to your .htaccess

    SetEnvIf Request_URI "guest.vary.php" change_header
    Header set X-Robots-Tag "noindex" env=change_header
    Thread Starter linux4me2

    (@linux4me2)

    Thanks for the quick response @qtwrk.

    I’ve added that to my .htaccess and begun a new validation with Google Search Console. I’ll post here about how it goes after I hear back from Google.

    Thread Starter linux4me2

    (@linux4me2)

    Hi @qtwrk,

    I got the message back from Google that the snippet you gave me for my .htaccess fixed the problem, so I’m going to mark this as resolved.

    Thanks again for the help.

    Plugin Support Hai Zheng?

    (@hailite)

    Thanks for the report. This is patched in v5.6.1-a7 as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Soft 404 from Google Search on /litespeed-cache/guest.vary.php’ is closed to new replies.