Skip to content
SIMON WARDMUSIC · TECHNOLOGY · CREATION
THE JOURNAL / SIMON WARD

How to Fix WordPress Noindex After a Staging Site Migration

19 November 2026 · Simon Ward · 9 min read
A laptop on a desk beside a paper checklist for a website migration.

If a WordPress site works after migration but Search Console reports that its pages are excluded by a noindex directive, check the public response before changing settings. The restriction might have come from the staging database, an SEO plugin or a rule at the new host. These are different places to fix the same symptom, and changing the wrong one can leave the directive in place.

Start with the homepage and one affected article. This walkthrough shows how to see what an anonymous visitor receives, trace the directive and check the same URLs again after the fix. Keep the staging site private while you work on the public copy. If your staging environment contains information that should stay private, it needs access control regardless of its search settings.

1. Write down the exact URL Google is reporting

Open the URL Inspection tool in Search Console and copy the affected address exactly. Include the scheme, hostname, path and trailing slash where applicable. A migration can leave the old address redirecting to a different hostname. The version people load from your navigation may be quite different from the one you picked from an old report.

Open the reported address in an Incognito window and let it finish loading. Note where the address bar ends up. If the old page redirects to the intended new page, inspect the destination too. If the address gives an error, a login screen or a maintenance page, record that first. A noindex check on the wrong response will send you looking in the wrong place.

Pick a third URL that should stay out of search if your site has one, such as a duplicate landing page that was deliberately excluded. Use it as a comparison after changes. A blanket setting can affect more URLs than you intended, and a fix is only complete when the public pages are eligible and your intentional exclusions still behave as planned.

2. Look for the directive in the page source and response headers

In Chrome, right-click the public page and choose View Page Source. Search for noindex. Check where the match appears. It matters when it is part of a robots meta tag, such as a tag with the name robots or googlebot and a content value containing noindex. An article that discusses noindex can contain the word several times in ordinary text. Those matches do not tell a search engine to exclude the page.

Next open DevTools, select Network and refresh the page. Filter for the document request or look for the row whose type is document. Select the final page response and open Headers. Under Response Headers, look for X-Robots-Tag. Header names are case insensitive, so you may see it in lower case. Record the exact value if it contains noindex or none, and note whether there is more than one instance.

Look in both places. An SEO plugin can output a normal index directive in the HTML while a response header still says noindex. A more restrictive applicable rule can still take effect. Google describes the supported directives and crawler-specific rules in its robots meta and HTTP header reference. Check for a directive aimed specifically at Googlebot as well as one aimed at all crawlers.

Use a normal page load for this check. A cache, proxy or application can handle different request methods differently, so a header-only request alone may be misleading. If you compare the homepage with an affected article, note the final status and which directive each one carries. Keep those notes beside the time of each test so you can recognise a stale response after changing settings.

3. Check whether the staging setting followed the database

If several public WordPress pages have a noindex meta tag, open the dashboard for the live installation and go to Settings → Reading. First check the hostname in the browser. Some staging dashboards look identical to the live site after cloning, including the name and logo. Look for Search engine visibility and the option to discourage search engines from indexing the site.

If that option is ticked on the live copy and the site is supposed to be public, untick it and save the change. The setting is commonly enabled while a site is being prepared. A database migration can carry it over along with the rest of the configuration. WordPress documents the option on its Reading Settings reference. The option controls signals for search engines. It leaves the site reachable to anyone who already knows the address unless separate access controls apply.

Open the live page in a clean window and retest the source. If you still see the old tag, keep a record of it and check for a page cache before assuming that the settings change failed. Avoid changing the setting on the staging copy during this check. If the live and staging installations share infrastructure, confirm with your host which site and cache you are working on before making wider changes.

4. Check the SEO plugin when only some pages are affected

If the homepage looks fine but one article is excluded, edit that article and check its SEO controls. In Yoast, look under the advanced settings for the control that determines whether search engines can show that post in results. The name and location can vary with the editor and plugin version. Use the plugin's guide to noindex settings if you cannot locate it.

Check both the per-post setting and the default for that content type. A single draft copied from staging may retain an explicit exclusion. A content-type default can affect every post of the same kind while leaving ordinary pages alone. If a single post should appear in search, make the narrowest change that restores it. Leave the wider default alone unless you meant to change the whole group.

If you moved from one SEO plugin to another, verify what the public source actually shows after saving. Two robots tags can come from two different components, or from custom code left in the theme. Keep intentional archive exclusions, such as a date archive you have decided to hide. Before changing anything across an entire content type, inspect several examples and record which ones should be visible.

5. Trace an X-Robots-Tag header outside the editor

When the HTML looks right but the response has a restrictive header, check the settings at the new host, Reverse Proxy or CDN. Some migration workflows apply a response header to a development hostname or an entire virtual host. A rule intended for staging may have been copied with the site or may match both hostnames. Ask the host to identify the rule responsible if you cannot see where headers are configured.

Give support the exact URL, the time you tested, the status code and the header value you found. State whether the homepage and a second page behave the same way. That evidence helps them distinguish a rule applied to every HTML response from one applied to a path or an individual request. If the server also hosts a staging copy, specify which public hostname needs the fix and which environment should remain protected.

After the rule is fixed at its source, purge the affected page from any page or CDN cache that stores the old response. Start with the URLs you tested. Avoid removing unrelated headers while troubleshooting this one. Then repeat the Network check in a logged-out window, using the same address you tested originally. If two areas of the site have different caching rules, confirm at least one URL from each affected area.

6. Verify the change in Search Console

Open the exact public URL in URL Inspection and choose Test live URL. Check whether Google reports that indexing is allowed and that the fetch succeeded. The default inspection view can describe what Google saw previously, so it can keep showing the old exclusion for a while after the site is fixed. Compare the live test with the source and header checks rather than treating the old report as proof that the change did not work.

Once the live test looks right, request indexing for a representative corrected URL if the option is available. For a wider move, check that your sitemap lists the final public URLs and that navigation points to them. Google explains the differences between the indexed result and live test in the URL Inspection help. An eligible page can still take time to be recrawled and selected for indexing.

Check robots.txt as a separate step if Google says it cannot crawl the page. A disallow rule can prevent Google from fetching the page and seeing either the old or the corrected meta directive. Google explains this distinction in its noindex guide. Once it can crawl again, verify the declared canonical on the destination. A canonical pointing at the old hostname is another migration issue, and fixing the noindex signal will not change it.

7. Keep a short migration checklist for the next move

Record the staging hostname, the production hostname, the crawl rules you applied during testing and the exact places where you set them. Before the next launch, make a list of two or three public URLs and one intentionally excluded URL to test. Include a page that uses any special template or content type you rely on. A homepage alone can miss a restriction that only applies to posts, products or another section.

Write down what you saw on the corrected URLs. For example, note that the public article returned a successful document response, its source had no restricting robots directive and its response had no restrictive X-Robots-Tag. Then note the Search Console live test result and the date. This gives you something concrete to compare if a later deployment or cache change brings the issue back.

If you are moving the site to different URLs, keep the redirect and indexing work in the same checklist. Confirm that redirects land on the matching pages and that those destinations are eligible for indexing. Google's site move guidance includes checks for sitemaps, redirects and restrictions left over from development. For the wider site setup, see the WordPress on Nginx guide and the Guides archive.

When the directive has gone but the report has not changed

Compare the report's crawl date with the date of your fix. If the crawl is older and the live test passes, keep your evidence and allow time for another crawl. Repeatedly changing directives during that wait makes the results harder to interpret. If the live test still fails while your browser looks fine, save both sets of evidence. Check whether a cache or hosting rule responds differently to Google, and ask your host to review that exact address. If the live test passes but only a few pages from a larger migration are affected, inspect a sample from each template before treating the problem as site-wide. A single passing URL only tells you about the response tested for that URL.

Share this post