Skip to main content

Yoast Canonical URL Points to the Incorrect URL

Yesterday, I migrated my client's site from staging to production as a GoDaddy Managed WordPress site. After migrating the domain to the Managed Wordpress site, I ran a site audit in Ahrefs and found that the xml sitemap included noncanonical URLS. Upon further inspection in the page source, I found that Yoast was still including staging domain in the canonical URLs for every page.

To fix this issue, I first edited the canonical URL for every page, post, product, category, etc. in the Yoast settings and flushed the cache. Now the correct domain is included in the canonical URL for every page, except for the home page.

I implemented every solution I could find in other forums, which included replacing the staging domain with the correct domain in the databases, and flushed the cache. The correct canonical URL shows in the page source when I'm logged into the WordPress dashboard, but it does not show when I am logged out.

Has anyone else encountered this issue after migrating a domain from staging to production? If so, how did you solve the issue?

submitted by /u/SeeBeanLean
[link] [comments]

from Search Engine Optimization: The Latest SEO News https://ift.tt/CAeuQMy

Comments

Popular posts from this blog

Local seo vs. natiowide seo?

I've done SEO for local businesses but I recently got my first client that sells an item nation wide. ​ Any suggestions for doing nationwide SEO? ​ I am used to making geopages for local towns. I was going to do the same with some input from the client about what cities or towns he would like to show up in? submitted by /u/Letmeinterviewyou [link] [comments] from Search Engine Optimization: The Latest SEO News http://bit.ly/2JHy0k0

GMB territory inching with service company

Seeking advice on extending our service area, while our main GMB profile states SD County, we only rank in our neighborhood but we have the team to service much more jobs. The boss wants us to get addresses in these hot territories within the county and use call rail numbers to validate the GMB profile. Question: Does this still work? Will it catch up with us? OR is there a better way to rank in a territory for a service. We are 4.9 stars with 120+ reviews submitted by /u/SoCal619TradesPro [link] [comments] from Search Engine Optimization: The Latest SEO News https://ift.tt/9RWmh6i