• Resolved atiers

    (@atiers)


    Dear Litespeed cache,

    Could you put the following php file on no index /plugins/litespeed-cache/guest.vary.php thanks.

    It gives me soft 404 errors on websites that it tries to index this file.

Viewing 1 replies (of 1 total)
  • Add this code to your .htaccess outside of LiteSpeed markers:

    RewriteCond %{REQUEST_URI} \/guest.vary\.php [NC]
    RewriteRule ^.*$ - [ENV=NOINDEX:true]
    header set X-Robots-Tag "noindex,nofollow,noodp" env=NOINDEX

    The reason Google is reporting this error to you is that you had guestmode enabled in the past and now it seems you don’t. Actually, you don’t have to do anything at all, because Google is a bit sluggish and it takes a while for Google to figure out that guest.vary.php no longer exists. You have no disadvantages because of this.

    After all, it is an integral part of the Internet that sources disappear or are deleted, but only Google expects a different status 410 and not just 404 (“soft”). There is no official soft 404. There is either a 404 or 404, but no soft 404.

Viewing 1 replies (of 1 total)
  • The topic ‘Google search console index error php file’ is closed to new replies.