Title: 404 errors with googlebot
Last modified: August 22, 2016

---

# 404 errors with googlebot

 *  [DrNeptune](https://wordpress.org/support/users/drneptune/)
 * (@drneptune)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/404-errors-with-googlebot/)
 * I keep seeing bots reaching these js files over and over
 * and tried to access non-existent page [http://olympiavaporworks.com/wp-content/cache/autoptimize/js/autoptimize_c8f1c9bee719acfecddf9f1e0ad358ff.js](http://olympiavaporworks.com/wp-content/cache/autoptimize/js/autoptimize_c8f1c9bee719acfecddf9f1e0ad358ff.js)
 * United States Mountain View, United States left [http://olympiavaporworks.com/product/eliquid-bundle-pack-2-15mls/](http://olympiavaporworks.com/product/eliquid-bundle-pack-2-15mls/)
   and tried to access non-existent page [http://olympiavaporworks.com/wp-content/cache/autoptimize/js/autoptimize_6b10326f6939cba17c4f85484dc41159.js](http://olympiavaporworks.com/wp-content/cache/autoptimize/js/autoptimize_6b10326f6939cba17c4f85484dc41159.js)
 * Everything works but I dunno can anyone tell me if this is something to worry
   about or how to fix it
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/404-errors-with-googlebot/#post-5489217)
 * Seems somewhat similar to [what was reported here](https://wordpress.org/support/topic/500-error-in-woocommerce-pages-when-crawled-by-googlebot).
 * In the end we added something similar to this piece of code in a seperate helper-
   plugin (but can also be in your theme’s functions.php or in a child theme’s functions.
   php) to make sure google got no error;
 *     ```
       add_filter('autoptimize_js_do_minify','neptune_ao_js_minify',10,1);
       function neptune_ao_js_minify() {
       	if (strpos($_SERVER['HTTP_USER_AGENT'],"Googlebot")!==false) {
       		return false;
       	} else {
       		return true;
       	}
       }
       ```
   
 * This could be a solution for you as well.
 * Hope this helps,
    frank
 *  Thread Starter [DrNeptune](https://wordpress.org/support/users/drneptune/)
 * (@drneptune)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/404-errors-with-googlebot/#post-5489221)
 * Thanks for the reply, So i just add this to the end of my functions.php file?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/404-errors-with-googlebot/#post-5489253)
 * you can, but in that case you could loose the changes if the theme would get 
   updated. so except if you’re sure the theme won’t get updated, you should rather
   either create a child theme with it’s own functions.php or create a simple plugin
   with that code.
 * frank
 *  Thread Starter [DrNeptune](https://wordpress.org/support/users/drneptune/)
 * (@drneptune)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/404-errors-with-googlebot/#post-5489255)
 * ya I tried to make a child theme but it kept not grabbing the old themese info.
   But Wouldnt it be the same if I were to just download the functions.php file 
   and just replace it with the new one if i do update the theme?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/404-errors-with-googlebot/#post-5489261)
 * yeah, that would work 🙂

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

The topic ‘404 errors with googlebot’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/404-errors-with-googlebot/#post-5489261)
 * Status: not resolved