Google clarifies hyphens vs underscores in URLs, and what you can control in AI search
No rule changes this update, but Google published two pieces of guidance worth knowing: hyphens beat underscores in URLs, and there are more controls over your content in AI search than you might realise.
From the archive. We wrote this before SEOCode became a news site in November 2026. It stays up so old links still work.
No SEOCode rules changed this update. Google did publish two pieces of guidance, though, and both are worth a quick read.
What changed in SEO, Search and AI
Hyphens beat underscores in URL paths
This one is about protecting traffic you already have, or making sure new pages get found in the first place.
What Google said. Google updated its official documentation to confirm that hyphens are the preferred way to separate words in a URL path. For example, /running-shoes is preferred over /running_shoes. The update was made to bring the written docs in line with a video series Google published called "The Non-Canonical Cabinet".
A URL path is the part of a web address that comes after the domain name. In www.example.com/running-shoes, the path is /running-shoes.
How this happens by accident. Some website platforms and content management systems default to underscores when they create URLs automatically. A team can publish hundreds of pages without ever noticing.
What it costs. Google has said for years that it treats hyphens as word separators and underscores as part of a single word. So /running_shoes could be read as one word, runningshoes, rather than two. The effect on any individual page is not known, but it can affect how well Google understands what a page is about.
Effort. Nothing to do right now if your existing pages are already indexed and ranking. Google's own guidance says do not change URLs that are already performing well. The risk of breaking links and losing rankings from a mass rename is real.
What to do. Check what your platform does by default when it creates a new page. If it uses underscores, change the setting now so future pages use hyphens. Leave existing pages alone unless they are brand new and not yet indexed.
Straight verdict. Minor for most sites. Worth a five-minute check on your platform's default URL settings. Do not do a mass rename of old pages.
You have more control over AI search than you might think
This one is about your place in AI answers, specifically your ability to decide what Google's AI features can use.
What Google said. Google updated its "control what you share with Google Search" page to list all the options available to you. The page now clearly covers robots.txt and a specific control for Google's generative AI features. It also makes clear the page applies to Google Search, not other Google products.
Robots.txt is a small file that sits on your website and tells search engines which pages they are allowed to read. Generative AI features are things like the AI summaries Google sometimes shows at the top of search results.
How this happens by accident. Most site owners set up robots.txt once and never look at it again. The options for controlling AI features are newer and easy to miss if you have not checked the documentation recently.
What it costs. If you have content you do not want appearing in AI-generated summaries, and you did not know the control existed, your content may already be appearing there. The reverse is also true: if you want to appear in AI answers, knowing what is and is not blocked matters.
Effort. Quick fix (about 5 minutes) to read the updated page. Any changes to robots.txt or AI controls would need a developer.
What to do. Read Google's updated "control what you share with Google Search" page. Check whether your current robots.txt settings match what you actually want, especially for AI features.
Straight verdict. Worth knowing. Not urgent unless you have strong feelings about where your content appears. If you do, act now.
These checks run on every pull request, so any URL or robots.txt changes can be confirmed before they go live.
Catch SEO issues before they ship
SEOCode reviews every pull request against the latest Google SEO rules, automatically. No manual audits. No surprises after deploy.
It checks for missing metadata, broken structured data, hreflang errors, robots.txt issues, and more, right inside your existing GitHub workflow.
Want to know how your own site is doing right now? Get a website audit: your key pages checked, with a plain-English action plan.
Does this affect your site?The AI search audit checks up to 10 of your pages and gives you a report to share with your team.
Audit my site