Ensure that Google has access to the website
WordPress can prevent Google from accessing/reading/indexing your website. Ensure that Discourage search engines from indexing this site option located in the WordPress Dashboard β Settings β Reading is not enabled.
Add the website to Google's Search Console
For Google to be able to correctly index a website, the website should be added to Google's Search Console.
Login to your Google Search Console account
From the Search Form, add the website using the Add Property option
Select the URL prefix option for the Property Type:
Enter your website domain. Example:
https://my-domain.com
and click ContinueFollow the on-screen steps to Verify the Ownership of the domain
Download the provided HTML file and upload it to the Root of your website.
Click on Verify The Ownership and the verified message will be displayed
Configure the website's SEO
Install and activate Rank Math SEO. Check their documentation to learn how to configure the Rank Math SEO plugin by accessing this link.
For each page/post/product and project, set the SEO details
Go to the Rank Math SEO β Sitemap Settings
Click on the Sitemap Index URL and copy its address to your clipboard
Go back to Google Search Console
Click on Indexing β Sitemap
Add the sitemap URL
Click on Submit
If everything goes well, the confirmation message will be displayed:
Note: Depending on how many pages/posts/projects/products the sitemap contains, indexing all the links might take a while.
After the indexing process is complete, the website will be visible on the Google Search Results page. Please note that it can take several days or even weeks before your website is indexed.