YouTube Links and Indexing Problems
Many website owners are surprised to find that YouTube links embedded or listed on their website don’t appear in Google’s search index. You might have a blog post full of useful videos, but when you search for that exact URL in Google, it’s nowhere to be seen.
The issue often comes down to link format. YouTube doesn’t treat every URL format the same way. Search engines also behave differently depending on whether your link points to a watch page or another type of YouTube page.
What Counts as a “Watch Page”?
A YouTube watch page is the standard URL where most videos live. It looks like this:
https://www.youtube.com/watch?v=VIDEO_ID
This is the format Google, Bing, and other search engines most reliably recognise and index.
If your links use different formats, such as:
- Shorts format:
https://www.youtube.com/shorts/VIDEO_ID - Embed format:
https://www.youtube.com/embed/VIDEO_ID - Playlist-only format:
https://www.youtube.com/playlist?list=LIST_ID(without av=parameter)
… then search engines may treat them differently, often with lower priority or not at all.
Why Alternative Formats Cause Problems
1. Shorts pages are treated differently
YouTube Shorts have their own page structure and feed logic. They are designed for mobile swiping, not for embedding in websites. Search engines may not always index Shorts URLs in the same way as standard watch pages, especially if they lack additional context or engagement signals.
2. Embed URLs are not public watch pages
An embed URL is intended for use inside an <iframe> on another site. It doesn’t have the full YouTube watch page elements (comments, description, recommendations), so search engines don’t consider it the main video URL.
3. Playlists without a main video
A playlist link without a v= parameter tells YouTube to load a list, not a specific video. While playlists can be indexed, they usually rank lower than watch pages, and they don’t pass the same direct link equity to a single video.

Why It Matters for SEO
1. Missed ranking opportunities
If you link to Shorts or embeds instead of watch pages, Google may not associate your content with the main indexed video. This means you’re missing the chance to show up for video search results alongside the video’s YouTube page.
2. Weaker link equity
Links from your site pass SEO value (link equity). If those links go to a non‑indexable or low‑priority URL format, you’re not giving the video the maximum boost possible.
3. Reduced relevance signals
Search engines use the anchor text and context around your links to understand what a page is about. If you point to the correct watch page, that relevance is stronger, and the association between your site and the video improves.
4. User experience
Visitors who click a Shorts or embed link may get an interface they weren’t expecting, often less information, fewer controls, or no comments. This can affect how long they engage with the content.
The Simple Fix That Automatically Convert Links
To make sure every YouTube link on your site is in the correct format, you can use a small JavaScript snippet. This will scan all links on your page and automatically convert Shorts and embed links to the correct watch?v= format.
Code to Add to Your Site (Child Theme footer.php)
<script>
document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll('a[href*="youtube.com"]').forEach(function (link) {
try {
let url = new URL(link.href);
// Handle shorts links: /shorts/VIDEO_ID
if (url.pathname.startsWith("/shorts/")) {
let videoId = url.pathname.split("/")[2];
link.href = "https://www.youtube.com/watch?v=" + videoId;
}
// Handle embed links: /embed/VIDEO_ID
if (url.pathname.startsWith("/embed/")) {
let videoId = url.pathname.split("/")[2];
link.href = "https://www.youtube.com/watch?v=" + videoId;
}
// Optional: handle youtu.be short links
if (url.hostname === "youtu.be") {
let videoId = url.pathname.substring(1);
link.href = "https://www.youtube.com/watch?v=" + videoId;
}
// Playlist-only links are left unchanged unless you add a main video
} catch (e) {
console.warn("Invalid YouTube URL skipped:", link.href);
}
});
});
</script>
How to add it
- Edit your child theme’s
footer.php. - Paste this script just above
<?php wp_footer(); ?>and before</body>. - Save and refresh your site.
From now on, any YouTube link you place in your content will be corrected on the fly to the proper watch page format — helping your SEO and improving user experience.
Finally, for video SEO, the small details matter.
Simply ensuring your YouTube links point to watch?v= pages can make the difference between your content being indexed and discovered, or being ignored.
Whether you’re embedding videos for tutorials, product demos, or entertainment, converting all links to the correct watch page format ensures your site passes maximum SEO value to the video and helps both your website and your YouTube channel grow.