---
title: Yoast Indexables
url: "https://pressable.com/knowledgebase/yoast-indexables/"
published: 2024-01-30
modified: 2024-09-05
author: Wayne McWilliams
---

If you are seeing the wrong domain displaying in search results (ex: `sitename.mystagingwebsite.com` instead of `sitename.com`), it may be due to using Yoast ([Yoast SEO](https://href.li/?https://wordpress.org/plugins/wordpress-seo/) or [Yoast SEO Premium](https://href.li/?https://yoast.com/wordpress/plugins/seo/) plugins).

We explain why and how to resolve below.

## Overview[](https://wpcloudfieldguide.wordpress.com/troubleshooting/miscellaneous/yoast-index/#overview)

If Yoast ([Yoast SEO](https://href.li/?https://wordpress.org/plugins/wordpress-seo/) or [Yoast SEO Premium](https://href.li/?https://yoast.com/wordpress/plugins/seo/) plugins) is used on a website and a domain is added or changed (new site, cloned site, etc) without taking steps afterward, it can result in the staging domain or previous domain showing in search results:

![Search results showing .mystagingwebsite.com URL instead of primary domain.](https://i0.wp.com/pressable.com/wp-content/uploads/2024/03/yoast-indexables-example.webp?resize=1024%2C447&ssl=1)In the above image, the `https://littlesproutboutique.mystagingwebsite.com` URL is the site’s staging URL and the `https://littlesproutboutique.com/` URL should be displayed instead.

When a domain is switched or added to a staging site, Yoast ([Yoast SEO](https://href.li/?https://wordpress.org/plugins/wordpress-seo/) or [Yoast SEO Premium](https://href.li/?https://yoast.com/wordpress/plugins/seo/) plugins) may fail to rebuild its [indexables](https://href.li/?https://yoast.com/innovations/indexables/) – this is where canonical URLs are stored.
​
This is a Yoast issue and not Pressable-specific. While the Pressable platform performs an exhaustive search-replace any time a domain is changed or site is moved, Yoast needs to have its indexables rebuilt. It should do this on its own, or provide alerts when it is needed, but sometimes it doesn’t. There are [many reports on Yoast’s plugin forums about this](https://href.li/?https://wordpress.org/search/indexables+intext%3A%22Plugin%3A+Yoast+SEO%22/).

## How to Fix[](https://wpcloudfieldguide.wordpress.com/troubleshooting/miscellaneous/yoast-index/#how-to-fix)

Rebuilding/reindexing the Yoast indexables resolves the issue.

There are two ways to reindex Yoast’s indexables:

- **Option 1:** The Yoast Test Helper plugin may be used to reset indexables via a site’s WP-Admin. [https://yoast.com/help/how-to-reset-yoast-indexables/](https://href.li/?https://yoast.com/help/how-to-reset-yoast-indexables/)
- **Option 2:** Site administrators may use [WP-CLI](https://pressable.com/knowledgebase/how-to-use-wp-cli/) to run the following WP-CLI command on the site *after* the site’s custom domain has been added or updated. 
    - `wp yoast index --reindex` and flush the site’s cache. ([more info](https://developer.yoast.com/features/wp-cli/reindex-indexables/)).
    - If using Pressable’s [Bulk Operations functionality](https://pressable.com/knowledgebase/run-bulk-operations-on-your-pressable-sites/) to run the command across multiple sites, you may use `wp --skip-themes yoast index --reindex --skip-confirmation; wp --skip-plugins --skip-themes cache flush`

## Pressable Migration Plugin

To help with this issue for sites migrated to Pressable, as of May 14, 2024 the [Pressable Migration plugin](https://pressable.com/knowledgebase/using-the-pressable-automated-migration-plugin/) will migrate over the following Yoast plugin tables, but it will NOT search-replace them:

- wp\_yoast\_indexable
- wp\_yoast\_indexable\_hierarchy
- wp\_yoast\_seo\_links
- wp\_yoast\_prominent\_words

That means that as long as you plan on adding the live domain back to the migrated Pressable site once the migration is completed, this issue should not impact migrated sites.

For more information and considerations, please visit: <https://pressable.com/knowledgebase/using-the-pressable-automated-migration-plugin/#yoast-indexables>

## Yoast Support[](https://wpcloudfieldguide.wordpress.com/troubleshooting/miscellaneous/yoast-index/#yoast-support)

Please contact Yoast’s support if you have additional questions or concerns: [https://yoast.com/help/](https://href.li/?https://yoast.com/help/)
