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

Legit Reviews

The google review thing is insane I have gotten 2 legit verified reviews that i ask client to screenshot and observe goolge not post them, pretend like they never happened and when i sent them the image a policy message was sent . As I was browsing through the google forum a lot of ppl are getting hit with legit reviews being removed. While all this is going on i have observe a company go from 12 reviews to 65 reviews in a two month period with some stuff that dont make sense on some of them. Seems like a new business or profile is being limited while aged accounts can have a free for fall but who really knows. Still waiting for a resolution on a if any. submitted by /u/Ok-Bowl-6167 [link] [comments] from Search Engine Optimization: The Latest SEO News https://ift.tt/zkbfgDH

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

7 SEO Lessons I've Learned in 2025 (So Far) - From Building a Competitor Analysis Tool

Hey r/SEO , I've been spending a lot of time lately building a competitor keyword research tool (more on that below!), and it's really forced me to dig deep into how SEO works today . Here are some of the key lessons I've learned – hopefully, they're helpful to you too: Keyword Gaps Are Gold: It's not enough to just know what keywords your competitors rank for. You need to know what they rank for that you don't . This is where the real opportunities lie. Focusing on these "gap" keywords has been a game-changer for my own site. (This is actually why I built the tool – to make finding these gaps easier). Relevance > Volume (Sometimes): High search volume is great, but relevance is even more important. A keyword with 100 searches per month that's perfectly aligned with your niche and audience is often more valuable than a keyword with 10,000 searches that's only tangentially related. I've seen much better results targeting tho...