• Resolved Davide Roccato

    (@davidroccato)


    Hi,
    Once I have deleted autoptimize I got tons of these from the 404s redirection plugin and the source is googlebot.

    ​/wp-content​/cache​/autoptimize​/autoptimize_b068c0c5615de810ea44e55fa3d0feea.php
    /wp-content/cache/autoptimize/css/autoptimize_82b067f03ef715afde195719176820a6.css

    ​/wp-content​/cache​/autoptimize​/js​/autoptimize_48387732344c01a39dfe050e8ae4c233.js

    I have deleted an autoptimize folder that was left in the wp-content/cache and I have emptied the cache of my browser as you suggested but I still get them.

    Is that normal or there is a way to avoid them?

    Thanks

    https://ww.wp.xz.cn/plugins/autoptimize/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Evening David;
    If only from googlebot, then I wouldn’t worry about that too much. Google seems to keep pages in their own cache, checking resources (JS/ CSS) for them later. If in the mean time you removed AO (and/ or cleared its cache) then you’re bound to see 404’s for those, but this won’t impact what normal visitors see.

    if you _really_ want to get rid of them, you could add a rule in your .htaccess (something like this) to return a 410 (gone) instead of a 404 for all requests for /wp-content/cache/autoptimize/* ?

    good luck,
    frank

    Thread Starter Davide Roccato

    (@davidroccato)

    Hi Frank,

    Thank you but I’m not a dev so sometimes it’s quite complicated to understand and in fact I don’t completely understand those conversations.

    Do you think they will disappear after a few weeks from googlebot?

    Otherwise, I don’t understand how to redirect in another way as 410 this line: /wp-content/cache/autoptimize/* with the code below, I suppose.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule (.*) "-" [G,NC]
    </IfModule>

    Thanks

    Plugin Author Frank Goossens

    (@futtta)

    Do you think they will disappear after a few weeks from googlebot?

    Yes, they will.

    I don’t understand how to redirect in another way as 410 this line

    well, you would have to re-create wp-content/cache/autoptimize and inside that autoptimize-folder create a file called .htaccess and copy/past that code in there (but do take into account this will only work if you are on Apache)

    hope this clarifies,
    frank

    Thread Starter Davide Roccato

    (@davidroccato)

    Ok, I get that, thank you.

    I see how long it takes from google to learn they are gone and if it takes too much I do as you suggested.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘404s after delete’ is closed to new replies.