Title: SEO optimization
Last modified: February 15, 2021

---

# SEO optimization

 *  Resolved [leokid71](https://wordpress.org/support/users/leokid71/)
 * (@leokid71)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/seo-optimization-8/)
 * Hi, i have installed the free version of the basic Yoast SEO plugin.
 * In the “Bacheca” tab i have an alert for the SEO optimization. When i click and
   start the optimization i have an error in the next page: “Oops, something has
   gone wrong and we couldn’t complete the optimization of your SEO data. Please
   click the button again to re-start the process”
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fseo-optimization-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Suwash Kunwar](https://wordpress.org/support/users/suascat_wp/)
 * (@suascat_wp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/seo-optimization-8/#post-14051064)
 * [@leokid71](https://wordpress.org/support/users/leokid71/)
 * We understand you’re getting the following error message while trying to start
   the Optimization.
 * _Oops, something has gone wrong and we couldn’t complete the optimization of 
   your SEO data. Please click the button again to re-start the process._
 * To troubleshoot the issue, can you please follow the steps below:
 * – Install & activate the Yoast Test Helper plugin — [https://wordpress.org/plugins/yoast-test-helper/](https://wordpress.org/plugins/yoast-test-helper/)
   –
   Go to your WordPress admin dashboard > Tools (sidebar) > Yoast Test – Locate 
   the Yoast SEO section and select the “Reset indexable tables & migrations” button–
   After resetting, go to the WordPress admin dashboard > SEO (sidebar) > Tools 
   section and click the “Start SEO data optimization” button
 * Does this resolve the issue?
 *  Thread Starter [leokid71](https://wordpress.org/support/users/leokid71/)
 * (@leokid71)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/seo-optimization-8/#post-14051157)
 * I have done all the steps indicated but unfortunately there is still the error.
   I also have a site security plugin (Wordfence), can it affect ?
 * Any other suggestions ?
 *  [Pcosta88](https://wordpress.org/support/users/pcosta88/)
 * (@pcosta88)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/seo-optimization-8/#post-14051559)
 * Hi,
 * Yes, security plugins can impact how the button runs. We would like some more
   information.
 * 1. Are all your non-Yoast plugins and themes also updated?
 * 2. If you run the button and then check for JavaScript errors do any appear on
   that page in the backend? They would appear in red in the console. Can you describe
   them or take a screenshot? If you are not sure how to look for JavaScript errors
   please use this guide [https://yoast.com/help/how-to-find-javascript-errors-with-your-browsers-console/](https://yoast.com/help/how-to-find-javascript-errors-with-your-browsers-console/).
 *  You can use a tool like: [https://imgbb.com/](https://imgbb.com/) to share the
   image.
 *  Thread Starter [leokid71](https://wordpress.org/support/users/leokid71/)
 * (@leokid71)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/seo-optimization-8/#post-14052031)
 * Hi, yes.. i can se an error :
 * Failed to load resource: the server responded with a status of 403 ()
 * “/wp/wp-json/yoast/v1/indexing/prepare:1”
    -  This reply was modified 5 years, 3 months ago by [leokid71](https://wordpress.org/support/users/leokid71/).
    -  This reply was modified 5 years, 3 months ago by [leokid71](https://wordpress.org/support/users/leokid71/).
 *  [Pcosta88](https://wordpress.org/support/users/pcosta88/)
 * (@pcosta88)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/seo-optimization-8/#post-14052101)
 * Hi [@leokid71](https://wordpress.org/support/users/leokid71/),
 * We can see you are getting a 403 error. The SEO Data feature uses the WordPress
   REST API to scan posts/pages for the right internal links to show. Your server
   returns a 403 error when accessing the REST API.
 * Please contact your webhost to review your server setup to determine why the 
   REST API returns the error. There may be a server setting or module that needs
   to be adjusted such as mod_security. If you are using security plugins they can
   block access to wp/wp-json/yoast/v1/indexing/prepare:1 file pathway. You may 
   need to contact them or your host provider and whitelist that URL. Once the server
   no longer returns the error, we would expect the SEO Data feature to load and
   work correctly.
 * In addition, if you are using caching on your site (varnish or otherwise) you
   may need to adjust cache settings to remove wp/wp-json/yoast/v1/indexing/prepare:
   1 from the caching. If you are not sure how to do that please contact your host
   provider and/or caching plugin authors. Finally, sometimes security plugins can
   block this. If you are using a security plugin please contact the author of it
   for more information.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/seo-optimization-8/#post-14081576)
 * We are going ahead and marking this issue as resolved due to inactivity. If you
   require any further assistance please create a new issue.

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

The topic ‘SEO optimization’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [optimization](https://wordpress.org/support/topic-tag/optimization/)

 * 6 replies
 * 4 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/seo-optimization-8/#post-14081576)
 * Status: resolved