{"id":2072,"date":"2026-05-07T15:13:47","date_gmt":"2026-05-07T12:13:47","guid":{"rendered":"https:\/\/allinonewpsettings.com\/blog\/?p=2072"},"modified":"2026-08-02T12:09:22","modified_gmt":"2026-08-02T12:09:22","slug":"how-to-redirect-non-www-to-www-in-wordpress","status":"publish","type":"post","link":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/","title":{"rendered":"How to Redirect Non-WWW to WWW in WordPress"},"content":{"rendered":"<p>A team may choose <code>www.example.com<\/code> as its public hostname even though WordPress and several integrations still use the apex domain. Adding a redirect before those dependencies are aligned can create loops, extra hops or failed callbacks.<\/p>\n<p>A sound migration makes WWW canonical across WordPress and its consumers, keeps the apex host reachable long enough to issue a direct redirect, and verifies real application paths before the old behavior is retired.<\/p>\n<div class=\"aiows-article-toc\" style=\"margin:28px 0;padding:20px 22px;border:1px solid #dcdcde;border-radius:12px;background:#fafafa;\">\n<strong style=\"display:block;margin-bottom:10px;font-size:18px;\">Table of contents<\/strong><\/p>\n<ol style=\"margin:0 0 0 20px;\">\n<li><a href=\"#definition\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">What it means<\/a><\/li>\n<li><a href=\"#example\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">A realistic WordPress example<\/a><\/li>\n<li><a href=\"#why\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">Why it matters and when to use it<\/a><\/li>\n<li><a href=\"#beginner\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">A straightforward route for beginners<\/a><\/li>\n<li><a href=\"#advanced\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">The advanced route<\/a><\/li>\n<li><a href=\"#risks\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">Risks, common mistakes, backup, and rollback<\/a><\/li>\n<li><a href=\"#aiows-module\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">How AIOWS helps: AIOWS Redirect Manager<\/a><\/li>\n<li><a href=\"#related\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">Related AIOWS articles<\/a><\/li>\n<li><a href=\"#conclusion\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">Conclusion and recommended route<\/a><\/li>\n<li><a href=\"#sources\" style=\"color:inherit;text-decoration:underline;text-underline-offset:2px;\">Official sources<\/a><\/li>\n<\/ol>\n<\/div>\n<h2 id=\"definition\" style=\"scroll-margin-top:96px;\">What it means<\/h2>\n<p>An apex-to-WWW redirect sends requests for <code>example.com<\/code> to the same path and query string on <code>www.example.com<\/code>. DNS and TLS must still work for the apex host because the browser connects to it before receiving the redirect.<\/p>\n<p>The redirect is only one part of the change. WordPress URLs, canonical tags, cookies, CDN settings, OAuth and payment callbacks, webhooks and outbound links should all agree that WWW is the primary hostname.<\/p>\n<h2 id=\"example\" style=\"scroll-margin-top:96px;\">A realistic WordPress example<\/h2>\n<p>An ecommerce site adopts WWW for a new CDN configuration. Its WordPress Address is updated, but the payment provider still returns customers to the apex domain and an old server rule redirects WWW back to the apex. Checkout now crosses both hostnames and can enter a loop.<\/p>\n<p>The team first removes the conflicting rule, confirms certificate coverage for both hosts and updates the registered callback. A single exact-host rule then sends each apex request directly to the corresponding HTTPS WWW URL.<\/p>\n<h2 id=\"why\" style=\"scroll-margin-top:96px;\">Why it matters and when to use it<\/h2>\n<p>Using one canonical hostname reduces duplicate URLs and makes cache keys, cookies, analytics and external integrations easier to reason about. The change is appropriate when WWW is an intentional site-wide standard, not as a speculative response to an unrelated redirect problem.<\/p>\n<p>Complete the surrounding configuration first. If the apex domain cannot complete TLS, no application-level redirect can rescue that request.<\/p>\n<h2 id=\"beginner\" style=\"scroll-margin-top:96px;\">A straightforward route for beginners<\/h2>\n<ol>\n<li>Confirm that both the apex and WWW names resolve to the intended service and have valid certificates.<\/li>\n<li>Record the current WordPress Address, Site Address, redirect chain and important callback URLs.<\/li>\n<li>Update WordPress and the required integrations so they use the HTTPS WWW address.<\/li>\n<li>Remove any rule that sends WWW back to the apex, then add one exact apex-to-WWW redirect in a single layer.<\/li>\n<li>Test pages, assets, sign-in, checkout, forms, webhooks and representative query strings in a private browser session.<\/li>\n<li>Keep the previous configuration ready until logs and user journeys remain stable.<\/li>\n<\/ol>\n<h2 id=\"advanced\" style=\"scroll-margin-top:96px;\">The advanced route<\/h2>\n<p>Inspect every response in the chain rather than accepting the final 200 alone. The apex HTTP and HTTPS variants should reach the final HTTPS WWW URL without an intermediate host, a lost query string or a changed request method where that method matters.<\/p>\n<p>Check proxy scheme headers, host matching, cookie Domain attributes, CDN cache keys, canonical and hreflang output, sitemaps and provider callback registrations. An exact host condition is safer than constructing a destination from an untrusted incoming Host header.<\/p>\n<h2 id=\"risks\" style=\"scroll-margin-top:96px;\">Risks, common mistakes, backup, and rollback<\/h2>\n<p>The common failures are missing apex certificate coverage, contradictory redirects at different layers and host-scoped cookies that break authenticated or transactional flows. Broad host matching can also create an open redirect or catch staging domains unexpectedly.<\/p>\n<p>Rollback means restoring the previous WordPress URLs and integration settings together with the earlier redirect configuration. Test both hostnames after the reversal so a cached or upstream rule is not mistaken for a successful recovery.<\/p>\n<section aria-labelledby=\"aiows-module\" class=\"aiows-blog-cta\" style=\"margin:38px 0;padding:28px;border:1px solid #cddcff;border-radius:16px;background:#f6f9ff;\">\n<p style=\"margin:0 0 8px;font-size:13px;font-weight:800;letter-spacing:.05em;color:#1746a2;\">How AIOWS helps:<\/p>\n<h2 id=\"aiows-module\" style=\"margin:0 0 14px;scroll-margin-top:96px;\">AIOWS Redirect Manager<\/h2>\n<p>AIOWS Redirect Manager can hold the WordPress-side apex-to-WWW rule with an explicit source, destination and status. Keeping that rule in a managed interface makes its intent easier to review than an undocumented code fragment.<\/p>\n<p>Use a narrowly scoped rule only after DNS, certificates and dependent services are ready. Verify paths and query strings through the public route, and retain the prior configuration until the application checks pass.<\/p>\n<p>The module does not provision DNS or TLS and cannot update third-party callback registrations. If an edge proxy or web server already owns hostname canonicalization, keep that responsibility there rather than creating a second competing redirect.<\/p>\n<p style=\"margin-bottom:0;\"><a href=\"https:\/\/allinonewpsettings.com\/features\/redirect-manager\" rel=\"noopener noreferrer\" style=\"display:inline-block;padding:11px 17px;margin:6px 8px 0 0;border-radius:8px;background:#1557ff;color:#fff;text-decoration:none;font-weight:700;\" target=\"_blank\">Explore AIOWS Redirect Manager<\/a><a href=\"https:\/\/allinonewpsettings.com\/pricing\" rel=\"noopener noreferrer\" style=\"display:inline-block;padding:10px 16px;margin:6px 8px 0 0;border:1px solid #1557ff;border-radius:8px;color:#1557ff;text-decoration:none;font-weight:700;background:#fff;\" target=\"_blank\">Compare AIOWS plans<\/a><\/p>\n<\/section>\n<h2 id=\"related\" style=\"scroll-margin-top:96px;\">Related AIOWS articles<\/h2>\n<ul>\n<li><a href=\"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-www-to-non-www-in-wordpress\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to Redirect WWW to Non-WWW in WordPress<\/a><\/li>\n<li><a href=\"https:\/\/allinonewpsettings.com\/blog\/wordpress-trailing-slash-redirect-problems\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress Trailing Slash Redirect Problems<\/a><\/li>\n<li><a href=\"https:\/\/allinonewpsettings.com\/blog\/www-and-non-www-redirect-rules-for-wordpress-htaccess\/\" target=\"_blank\" rel=\"noopener noreferrer\">WWW and Non-WWW Redirect Rules for WordPress .htaccess<\/a><\/li>\n<\/ul>\n<h2 id=\"conclusion\" style=\"scroll-margin-top:96px;\">Conclusion and recommended route<\/h2>\n<p>Choose WWW consistently, prepare both hostnames, and use one direct apex-to-WWW redirect. Accept the change only after sessions, callbacks and ordinary page requests work on the canonical address.<\/p>\n<h2 id=\"sources\" style=\"scroll-margin-top:96px;\">Official sources<\/h2>\n<ul class=\"aiows-article-sources\">\n<li><a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/301-redirects\" target=\"_blank\" rel=\"noopener noreferrer\">Google Search redirect guidance<\/a><\/li>\n<li><a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/rewrite\/\" target=\"_blank\" rel=\"noopener noreferrer\">Apache URL rewriting guide<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Redirect an apex WordPress domain to WWW without loops, certificate failures, broken sessions or unnecessary hops.<\/p>\n","protected":false},"author":1,"featured_media":7755,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[140],"tags":[],"class_list":["post-2072","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-redirect-manager"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.0 (Yoast SEO v28.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Redirect Non-WWW to WWW in WordPress<\/title>\n<meta name=\"description\" content=\"Redirect non-WWW to WWW in WordPress. Check the relevant WordPress layer, avoid common mistakes, verify the result, and keep a tested rollback.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Redirect Non-WWW to WWW in WordPress\" \/>\n<meta property=\"og:description\" content=\"Redirect non-WWW to WWW in WordPress. Check the relevant WordPress layer, avoid common mistakes, verify the result, and keep a tested rollback.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"All in One WP Settings\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-07T12:13:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-02T12:09:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/2026\/09\/how-to-redirect-non-www-to-www-in-wordpress-en.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"All in One WP Settings\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"All in One WP Settings\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/\"},\"author\":{\"name\":\"All in One WP Settings\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/#\\\/schema\\\/person\\\/daa924a7f9a0d0fbe18ea77286693c57\"},\"headline\":\"How to Redirect Non-WWW to WWW in WordPress\",\"datePublished\":\"2026-05-07T12:13:47+00:00\",\"dateModified\":\"2026-08-02T12:09:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/\"},\"wordCount\":784,\"publisher\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/how-to-redirect-non-www-to-www-in-wordpress-en.webp\",\"articleSection\":[\"Redirect Manager\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/\",\"name\":\"How to Redirect Non-WWW to WWW in WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/how-to-redirect-non-www-to-www-in-wordpress-en.webp\",\"datePublished\":\"2026-05-07T12:13:47+00:00\",\"dateModified\":\"2026-08-02T12:09:22+00:00\",\"description\":\"Redirect non-WWW to WWW in WordPress. Check the relevant WordPress layer, avoid common mistakes, verify the result, and keep a tested rollback.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/how-to-redirect-non-www-to-www-in-wordpress-en.webp\",\"contentUrl\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/how-to-redirect-non-www-to-www-in-wordpress-en.webp\",\"width\":1440,\"height\":720,\"caption\":\"How to Redirect Non-WWW to WWW in WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/how-to-redirect-non-www-to-www-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Redirect Non-WWW to WWW in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/\",\"name\":\"All in One WP Settings\",\"description\":\"Fewer plugins. Faster WordPress.\",\"publisher\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/#organization\",\"name\":\"All in One WP Settings\",\"url\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/aiows-logo.png\",\"contentUrl\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/aiows-logo.png\",\"width\":772,\"height\":250,\"caption\":\"All in One WP Settings\"},\"image\":{\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/#\\\/schema\\\/person\\\/daa924a7f9a0d0fbe18ea77286693c57\",\"name\":\"All in One WP Settings\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/wp-content\\\/uploads\\\/aiows-avatar\\\/user-1.jpg\",\"url\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/wp-content\\\/uploads\\\/aiows-avatar\\\/user-1.jpg\",\"contentUrl\":\"https:\\\/\\\/allinonewpsettings.com\\\/blog\\\/wp-content\\\/uploads\\\/aiows-avatar\\\/user-1.jpg\",\"caption\":\"All in One WP Settings\"},\"sameAs\":[\"https:\\\/\\\/allinonewpsettings.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Redirect Non-WWW to WWW in WordPress","description":"Redirect non-WWW to WWW in WordPress. Check the relevant WordPress layer, avoid common mistakes, verify the result, and keep a tested rollback.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Redirect Non-WWW to WWW in WordPress","og_description":"Redirect non-WWW to WWW in WordPress. Check the relevant WordPress layer, avoid common mistakes, verify the result, and keep a tested rollback.","og_url":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/","og_site_name":"All in One WP Settings","article_published_time":"2026-05-07T12:13:47+00:00","article_modified_time":"2026-08-02T12:09:22+00:00","og_image":[{"width":1440,"height":720,"url":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/2026\/09\/how-to-redirect-non-www-to-www-in-wordpress-en.webp","type":"image\/webp"}],"author":"All in One WP Settings","twitter_card":"summary_large_image","twitter_misc":{"Written by":"All in One WP Settings","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/"},"author":{"name":"All in One WP Settings","@id":"https:\/\/allinonewpsettings.com\/blog\/#\/schema\/person\/daa924a7f9a0d0fbe18ea77286693c57"},"headline":"How to Redirect Non-WWW to WWW in WordPress","datePublished":"2026-05-07T12:13:47+00:00","dateModified":"2026-08-02T12:09:22+00:00","mainEntityOfPage":{"@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/"},"wordCount":784,"publisher":{"@id":"https:\/\/allinonewpsettings.com\/blog\/#organization"},"image":{"@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/2026\/09\/how-to-redirect-non-www-to-www-in-wordpress-en.webp","articleSection":["Redirect Manager"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/","url":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/","name":"How to Redirect Non-WWW to WWW in WordPress","isPartOf":{"@id":"https:\/\/allinonewpsettings.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/2026\/09\/how-to-redirect-non-www-to-www-in-wordpress-en.webp","datePublished":"2026-05-07T12:13:47+00:00","dateModified":"2026-08-02T12:09:22+00:00","description":"Redirect non-WWW to WWW in WordPress. Check the relevant WordPress layer, avoid common mistakes, verify the result, and keep a tested rollback.","breadcrumb":{"@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/#primaryimage","url":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/2026\/09\/how-to-redirect-non-www-to-www-in-wordpress-en.webp","contentUrl":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/2026\/09\/how-to-redirect-non-www-to-www-in-wordpress-en.webp","width":1440,"height":720,"caption":"How to Redirect Non-WWW to WWW in WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/allinonewpsettings.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/allinonewpsettings.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Redirect Non-WWW to WWW in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/allinonewpsettings.com\/blog\/#website","url":"https:\/\/allinonewpsettings.com\/blog\/","name":"All in One WP Settings","description":"Fewer plugins. Faster WordPress.","publisher":{"@id":"https:\/\/allinonewpsettings.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/allinonewpsettings.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/allinonewpsettings.com\/blog\/#organization","name":"All in One WP Settings","url":"https:\/\/allinonewpsettings.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/allinonewpsettings.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/2026\/07\/aiows-logo.png","contentUrl":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/2026\/07\/aiows-logo.png","width":772,"height":250,"caption":"All in One WP Settings"},"image":{"@id":"https:\/\/allinonewpsettings.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/allinonewpsettings.com\/blog\/#\/schema\/person\/daa924a7f9a0d0fbe18ea77286693c57","name":"All in One WP Settings","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/aiows-avatar\/user-1.jpg","url":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/aiows-avatar\/user-1.jpg","contentUrl":"https:\/\/allinonewpsettings.com\/blog\/wp-content\/uploads\/aiows-avatar\/user-1.jpg","caption":"All in One WP Settings"},"sameAs":["https:\/\/allinonewpsettings.com\/blog"]}]}},"lang":"en","translations":{"en":2072,"de":2073,"tr":2074},"pll_sync_post":{},"_links":{"self":[{"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/posts\/2072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/comments?post=2072"}],"version-history":[{"count":0,"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/posts\/2072\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/media\/7755"}],"wp:attachment":[{"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/media?parent=2072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/categories?post=2072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/allinonewpsettings.com\/blog\/wp-json\/wp\/v2\/tags?post=2072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}