- Pick one version—www or non-www—and stick to it across your entire server, DNS, and CMS configuration.
- Use 301 redirects rather than canonical tags as your primary method to force indexing consolidation.
- Update every internal link to match your preferred version to reduce unnecessary server-side redirects.
- Re-submit your preferred version to Google Search Console to signal the change to the crawler.
No, Google treats them equally from a ranking perspective. The problem arises when both versions remain accessible, which splits your authority, wastes crawl budget, and creates duplicate content issues that can lead to deindexing.
Does it matter if I use www or non-www for SEO?
You wake up to find your search traffic has cratered because Google is showing both your www and non-www versions, effectively splitting your link equity down the middle. This isn’t just a technical annoyance; it’s a crawl-efficiency nightmare that often triggers the very deindexing issues I spent six months recovering from.
The mechanics of the www vs non-www split
Technically, “www” is just a hostname. When you set up a server, you can point your domain to the raw root (example.com) or the subdomain (www.example.com). The mistake most site owners make is leaving both live. When both respond with a 200 OK status code, Google’s bot treats them as two separate websites.
If you have 500 pages, you effectively have 1,000 URLs in the eyes of the search engine. This confuses the crawler, spreads your backlink profile thin, and makes your analytics look like a mess. You aren’t “doubling your presence”; you are essentially competing against yourself for every single query.
The danger here is more than just duplicate content. It is about how Google allocates your “crawl budget”—the number of pages they decide to index and the frequency at which they re-crawl them. If Googlebot spends 50% of its time crawling your site’s duplicate version, it is spending 50% less time indexing your new content or updating your schema changes. Over time, this leads to sluggish indexing, where new articles stay “Discovered - currently not indexed” for weeks, simply because the bot is busy wandering through the wrong version of your site.
Selecting your canonical preference
I recommend sticking to whichever version you started with unless there is a pressing technical reason to switch, like needing to host cookies on a specific subdomain. If you’re starting fresh, the non-www version is cleaner and easier to type, but the www version is sometimes perceived as more “enterprise-grade” by legacy systems.
Pick one. It doesn’t matter which one you choose for rankings, but it matters that you are consistent. Once you decide, write it down. Every configuration step from here on out will be based on that single decision.
If your site is already indexed, check Google Search Console. Go to the “Pages” report and look at the “Duplicate without user-selected canonical” error. If Google is already picking one for you, align your preference with their choice to avoid unnecessary friction. If you have significant backlinks pointing to the www version, keep that as your primary. Don’t fight the existing link equity; steer the ship toward the harbor with the most traffic.
Implementing server-side 301 redirects
You cannot rely on a plugin to do this if you want it done right. You need to touch the server configuration. For Nginx, you want to use a block that forces a permanent redirect. If you chose non-www as your primary, your configuration should look like this:
server {
listen 80;
server_name www.example.com;
return 301 $scheme://example.com$request_uri;
}
If you are on Apache, add this to your .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]
Do not use 302 redirects. A 302 tells Google the move is temporary, and they will continue trying to index the version you don’t want. A 301 is a permanent transfer of authority.
Test this at the individual page level. If you have a deep page like www.example.com/blog/topic-a, it must redirect to https://example.com/blog/topic-a. A common mistake is redirecting everything to the homepage. This is “soft 404” behavior and will tank your rankings. Your redirect must maintain the URI string perfectly.
Cleaning up internal links and site architecture
Redirects are a safety net, not a substitute for good architecture. If your site has 2,000 internal links pointing to www.example.com/page-1 and you have redirected that to the root, every single click forces a server-side redirect. This adds latency to your page load time and creates a “redirect chain.”
Run a crawl using a tool like Screaming Frog. Look for all internal links that point to the non-preferred version. Use a find-and-replace plugin or a database query to update these links to your preferred canonical version. You want your site to be “clean” so that the crawler arrives at the correct page on the first attempt, every single time.
Update your hardcoded links in the header, footer, sidebar, and sitemap. If you are using a CMS like WordPress, use a plugin like “Better Search Replace” to perform a safe SQL search-and-replace across your wp_posts table. Be careful with serialized data; always back up your database before running a mass replace.
Updating your canonical tags
Even with 301s in place, you should have a canonical tag in the <head> of your HTML pointing to the preferred URL. This is a belt-and-suspenders approach. If you chose non-www, every single page on your site—including the www version if it somehow gets accessed—should have:
<link rel="canonical" href="https://example.com/page-path" />
This tells the bot, “Even if you found this via a weird route, the only version that matters is the one at this specific address.” Do not point the canonical tag to the www version if you’ve decided to use non-www. It sounds obvious, but I’ve seen developers leave this as a relative link or hardcode it to the wrong subdomain.
If you are using a dynamic site, ensure your canonical tag generation script is pulling the protocol (HTTPS) and the domain correctly. Check the page source of five different pages to ensure the tag is outputting the absolute URL, not a relative path like /page-path.
Costs and trade-offs of the migration
There is a real cost to fixing this, specifically in terms of temporary traffic volatility. When you implement a site-wide 301, you are essentially telling Google to re-index your entire site. In our experience, you can expect a 5-10% dip in traffic for about two weeks while the crawler processes the change.
The trade-off is that you are paying for long-term stability. If you don’t do this, you risk a manual action for duplicate content or, at the very least, a permanent suppression of your site’s potential because the crawler is wasting resources on irrelevant URLs. The technical labor is roughly two hours of work; the recovery time is a few weeks of patience.
Another trade-off is the impact on your CDN or load balancer. Some cloud-based WAFs (Web Application Firewalls) have their own redirect rules. If you configure a 301 at the server level, but your CDN is also trying to do a redirect, you might accidentally create a redirect loop. Always check your CDN’s “Page Rules” or “Redirect” settings to ensure they aren’t conflicting with your server-side code.
Worked scenario: The company that split its authority
Consider “AlphaTech,” a SaaS company with 1,200 indexed pages. They were running both versions, and 600 pages were indexed as www and 600 as non-www. They were seeing a 40% bounce rate on top-performing landing pages because of weird session-cookie resets when users jumped between the versions.
We spent 90 minutes updating their Nginx configs and running a SQL query on their WordPress database to fix 4,500 internal links. Within 21 days, their total indexed pages dropped from 1,200 to 600, but their organic traffic increased by 18%. By consolidating their backlink profile, they stopped splitting their domain authority, and their primary keywords finally broke into the top three results.
This scenario highlights the importance of the database update. By fixing the internal links, we reduced the server load, as fewer requests were triggering the redirect logic. This improved their Core Web Vitals, specifically the Largest Contentful Paint (LCP), because the browser didn’t have to wait for the server to send a 301 response before initiating the final connection.
Updating your search console and sitemaps
Google Search Console treats www and non-www as separate properties. You need to add both to your account, but you will only submit your sitemap to the preferred one.
Once your 301s are live, go to the Search Console property for the non-preferred version. Use the “Removals” tool if you are seeing a massive spike in errors, but usually, just letting the 301s do their work is safer. Ensure your robots.txt file is identical on both and that it allows the crawler to access the pages you want indexed.
A pro tip: if you have a massive site, monitor the “Crawl stats” report in the non-preferred property. You will see a spike in crawl activity as Google hits your 301s to verify the move. Once that traffic settles, you know the consolidation is effectively complete.
Verifying with cURL
Don’t trust your browser. Browsers cache redirects aggressively, which will lie to you about whether your fix is working. Open your terminal and run this command:
curl -I https://www.example.com
You should see a header that says HTTP/1.1 301 Moved Permanently. If you see a 200 OK on the www version, your server configuration failed. If you see a 404, you have a configuration error. Check this for both your homepage and a deep interior page to ensure the redirect rules are applying globally, not just at the root level.
Do this with the -L flag as well to follow the redirect: curl -IL https://www.example.com. This will show you the full chain, including the final 200 OK at your preferred destination. This is the only way to be 100% sure your redirect isn’t triggering a “too many redirects” error, which usually happens if you have a rule that loops back to itself.
Monitoring the consolidation phase
After you push the changes, watch your log files. You want to see the Googlebot hitting your site and receiving the 301 status code. If you see the bot continuing to crawl the old version repeatedly, check your internal links again; you likely missed a set of navigation menu links or footer links that are still pointing to the wrong version.
Be patient. Google’s index isn’t a light switch. It’s a massive database that updates in batches. If you don’t see results in 48 hours, it doesn’t mean you failed. It just means the crawler hasn’t re-processed your pages yet. Use the URL Inspection tool in Search Console to manually request re-indexing for your most important pages to speed up the process.
Keep a close eye on your “Coverage” or “Pages” report in Search Console. You are looking for a downward trend in the “Duplicate” category and a stabilization of the “Indexed” category. If you see a sudden drop in total indexed pages that exceeds the number of pages you have, re-check your robots.txt or your server access logs to ensure you haven’t blocked the crawler entirely.
The technical cleanup of your indexing is the foundation upon which your content strategy rests. If you don’t fix the host-name split, you are essentially building a house on a sinking foundation. Once the redirects are verified and the internal links are updated, your site will finally benefit from the full weight of your hard-earned authority.
If you find that your pages are still struggling to enter the index after you have resolved these redirect issues, InstantIndexingPro is the tool I use to force the issue and get those URLs into the index immediately.
Frequently asked questions
Does it matter if I use www or non-www for SEO?
No, Google treats them equally from a ranking perspective. The problem arises when both versions remain accessible, which splits your authority, wastes crawl budget, and creates duplicate content issues that can lead to deindexing.
Should I use a 301 redirect or a canonical tag?
Always use a 301 redirect. A canonical tag is a hint for Google, but a 301 redirect is a hard command that forces the crawler and users to the correct version, ensuring only one URL is indexed.
How long does it take for Google to fix my index after I set up redirects?
If you have a few hundred pages, you will typically see the index stabilize within two to four weeks. For larger sites with thousands of URLs, it can take up to three months for the crawler to fully prune the non-preferred version.
Can I change my preference after the site has been indexed?
Yes, you can switch from www to non-www or vice-versa at any time. However, you must maintain your 301 redirects indefinitely; if you remove them, you risk losing the authority you built on the old version.
Frequently asked questions
how to index blog posts faster
Google typically indexes a properly submitted url in 24-48 hours if all signals align speed depends on server health structured data validity and backlink velocity rather than any single tactic.
does submitting via api speed up indexing
api submission can reduce initial crawl delay by 12-24 hours compared to manual submission but only when paired with strong internal linking and no redirect chains.
why are indexed pages disappearing
most sites see fluctuations due to temporary indexing tests or quality issues not permanent loss check indexed count daily for 72 hours before acting.
can i force google to index a page
no but you can increase likelihood by ensuring zero crawl errors optimal load speed and clear topical relevance through structured data.
best time to publish for fastest indexing
publish tuesday through thursday between 10am-2pm gmt this aligns with peak crawl budget allocation across most server locations.
Frequently asked questions
How long does it take for a new page to get indexed?
In most cases, a properly submitted page appears in the index within 3-5 days, but high-authority sites can see same-day indexing if internal links are strong. Low-authority pages may take 2-3 weeks regardless of submission method.
Does adding a URL to the sitemap guarantee indexing?
No; a sitemap is a discovery signal, not a guarantee. Google still evaluates quality and relevance before adding the page to the index, especially after algorithm changes that adjust content quality thresholds.
Why did my pages disappear from the index after a core update?
Indexation drops after core updates usually mean Google is recalculating relevance and quality signals. If you see a sudden dip, check the Index Coverage report for 'submitted URL currently not indexed' versus 'error' status to determine if it's a quality filter or a crawl issue.
Can I force Google to index a page?
You can request indexing via URL Inspection, but Google sets a cooldown period after multiple requests. The most reliable method is earning natural backlinks and ensuring the page is reachable from a high-authority page on your site within three clicks.
Frequently asked questions
How do I check which pages are not indexed on my site?
Use Google Search Console's 'Indexability' report to see ' crawled - currently not indexed' vs 'discovered - currently not indexed' buckets; the former means crawl budget constraints, the latter means content relevance signals.
What causes pages to be crawled but not indexed?
Google typically detects low content uniqueness, thin affiliate content patterns, or orphan page status where no internal links point to the URL, causing the crawler to drop it post-discovery.
Can I force Google to index a page instantly?
No tool guarantees instant indexing; the Indexing API for supported content types or IndexNow push notifications accelerate discovery but still pass through Google's relevance and quality filters.
Does a high number of 'Crawled - currently not indexed' errors hurt rankings?
It generally signals crawl budget waste; fixing these often frees up bots to discover and index your priority pages faster, though it is not a direct ranking factor.