{"id":3758,"date":"2025-08-14T04:13:51","date_gmt":"2025-08-14T04:13:51","guid":{"rendered":"https:\/\/www.woohelpdesk.com\/blog\/?p=3758"},"modified":"2025-10-08T06:13:15","modified_gmt":"2025-10-08T06:13:15","slug":"how-to-redirect-non-www-to-www-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.woohelpdesk.com\/blog\/how-to-redirect-non-www-to-www-in-wordpress\/","title":{"rendered":"How to Redirect non-WWW to WWW in WordPress"},"content":{"rendered":"<h2>Table of Contents<\/h2>\n<ul>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n<ul>\n<li><a href=\"#section-1\">Introduction<\/a><\/li>\n<li><a href=\"#section-2\">Why www vs non-www Matters<\/a><\/li>\n<li><a href=\"#section-3\">Preparation \u2013 Backup &amp; Planning<\/a><\/li>\n<li><a href=\"#section-4\">Proven Methods to Redirect non-WWW to WWW in WordPress<\/a><\/li>\n<li><a href=\"#section-5\">Verify Your WordPress Redirect from non-WWW to WWW<\/a><\/li>\n<li><a href=\"#section-6\">Common Mistakes to Avoid<\/a><\/li>\n<li><a href=\"#section-7\">Conclusion<\/a><\/li>\n<\/ul>\n<h2 id=\"section-2\">Introduction<\/h2>\n<p>When you create a WordPress website, you can choose how the URL looks. Some websites start with <strong>&#8220;www&#8221;<\/strong>, while others skip it. For example:<\/p>\n<ul>\n<li>www.woohelpdesk.com<\/li>\n<li>woohelpdesk.com<\/li>\n<\/ul>\n<p>Both can load your website, but search engines treat them as two versions. If you don\u2019t set a clear preference, it can lead to SEO problems.<\/p>\n<p>Let\u2019s say your homepage loads on both versions. Google might think you have <strong>duplicate content<\/strong>. This hurts your <strong>search rankings<\/strong> over time. Also, visitors may see different URLs in search results. This creates <strong>confusion and inconsistency<\/strong>.<\/p>\n<p>That\u2019s why it\u2019s important to <strong>redirect non-WWW to WWW<\/strong>. This ensures that anyone visiting example.com gets sent to www.example.com. It tells search engines and users, \u201cThis is the correct version.\u201d<\/p>\n<h2 id=\"section-2\">Why www vs non-www Matters<\/h2>\n<p>Many people think www is old-fashioned. But it still has <strong>technical benefits<\/strong>, especially for large websites. It allows better control of <strong>cookies and subdomains<\/strong>. More importantly, it gives you a <strong>clean, consistent<\/strong> brand online.<\/p>\n<p>Search engines don\u2019t care if you choose www or non-www. But they do care if your site loads on both. That\u2019s called <strong>duplicate indexing<\/strong>, and it splits your SEO strength.<\/p>\n<p>To avoid this, you need to choose one version. In this guide, we\u2019ll focus on redirecting <strong>non-WWW to WWW<\/strong>. This means every visitor, no matter what they type, ends up on the www version.<\/p>\n<p><strong>SEO Benefits of Redirecting<\/strong><\/p>\n<p>Redirecting non-WWW to WWW has several SEO advantages:<\/p>\n<ul>\n<li>It prevents duplicate content issues<\/li>\n<li>It consolidates <strong>backlinks and traffic<\/strong> to one URL<\/li>\n<li>It improves <strong>crawl efficiency<\/strong> for search engines<\/li>\n<li>It helps build <strong>domain authority<\/strong><\/li>\n<\/ul>\n<p>These small steps make a big difference in your <strong>overall SEO<\/strong>.<\/p>\n<p><strong>Better User Experience<\/strong><\/p>\n<p>Visitors trust sites that look consistent. Seeing both example.com and www.example.com might confuse users. Redirecting to one version keeps things clean and professional.<\/p>\n<p>It also helps with <strong>analytics and tracking<\/strong>. You\u2019ll avoid data split between two domains.<\/p>\n<h2 id=\"section-3\">Preparation \u2013 Backup &amp; Planning<\/h2>\n<p>Before changing how your WordPress site handles redirects, take time to prepare. Redirects may seem simple, but one small mistake can cause a full site outage. Planning ahead helps you stay safe and avoid panic.<\/p>\n<p><strong>Why You Should Always Backup First<\/strong><\/p>\n<p>Your website holds valuable data. That includes content, design, SEO settings, and user data. When working with redirects, especially at the server level, mistakes can cause major problems. You might get locked out or your site may not load.<\/p>\n<p>If you have a backup, you can:<\/p>\n<ul>\n<li>Restore the site if anything breaks<\/li>\n<li>Undo mistakes without losing data<\/li>\n<li>Avoid downtime and client complaints<\/li>\n<\/ul>\n<p>A proper backup includes:<\/p>\n<ul>\n<li>Your full website files (themes, plugins, media uploads)<\/li>\n<li>The WordPress database (posts, settings, users)<\/li>\n<\/ul>\n<p><strong>How to Create a Backup Easily<\/strong><\/p>\n<p>You can create a backup using reliable WordPress plugins. These tools are easy to install and don\u2019t need coding:<\/p>\n<ul>\n<li><strong>UpdraftPlus<\/strong> \u2013 Offers cloud backups to Google Drive, Dropbox, and more<\/li>\n<li><strong>BlogVault<\/strong> \u2013 Premium tool with staging, real-time backups, and easy restore<\/li>\n<li><strong>Jetpack Backup<\/strong> \u2013 Set it and forget it. Great for beginners<\/li>\n<\/ul>\n<p>Once installed, these plugins let you schedule or download backups. Store backups somewhere safe\u2014cloud or offline.<\/p>\n<p><strong>Decide Which Version You Want: WWW or non-WWW<\/strong><\/p>\n<p>Before redirecting, choose your preferred domain version. In this guide, we\u2019re using <strong>www<\/strong>. But the choice is yours. What matters is that you <strong>stay consistent<\/strong>.<\/p>\n<p>Make sure your chosen version is:<\/p>\n<ul>\n<li>Used in WordPress settings<\/li>\n<li>Set up in hosting settings<\/li>\n<li>Verified in Google Search Console<\/li>\n<\/ul>\n<p>This helps avoid SEO conflicts later.<\/p>\n<p><strong>Avoid Redirect Loops<\/strong><\/p>\n<p>Redirect loops happen when two or more redirects keep triggering each other. This causes the browser to reload repeatedly and eventually fail. You\u2019ll see an error like \u201cToo many redirects.\u201d<\/p>\n<p>To avoid this:<\/p>\n<ul>\n<li>Use only <strong>one redirect method<\/strong><\/li>\n<li>Don\u2019t combine plugin, .htaccess, or server settings<\/li>\n<li>Clear your browser and WordPress cache after changes<\/li>\n<\/ul>\n<h2 id=\"section-4\">Proven Methods to Redirect non-WWW to WWW in WordPress<\/h2>\n<p>There are several ways to redirect <strong>non-WWW to WWW<\/strong> in WordPress. Each method works slightly differently depending on your hosting setup and skill level.<br \/>\n<a href=\"https:\/\/www.woohelpdesk.com\/wp-service\/fatal-error-maximum-execution-time-exceeded\/\"><img decoding=\"async\" src=\"https:\/\/www.woohelpdesk.com\/wp-content\/uploads\/2025\/10\/Fatal-Error-Maximum-Execution-Time-Exceeded-1.png\" alt=\"Fatal Error: Maximum Execution Time Exceeded\" \/><\/a><\/p>\n<p>Let\u2019s explore these methods step by step. Follow only one method to avoid redirect loops.<\/p>\n<ol>\n<li><strong> Change Site URL in WordPress General Settings<\/strong><\/li>\n<\/ol>\n<p>This method updates your WordPress site address but doesn\u2019t set a redirect.<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<ol>\n<li>Login to your <strong>WordPress dashboard<\/strong>.<\/li>\n<li>Go to <strong>Settings &gt; General<\/strong>.<\/li>\n<li>Look for two fields:\n<ul>\n<li><strong>WordPress Address (URL)<\/strong><\/li>\n<li><strong>Site Address (URL)<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Update both fields to use <strong>www<\/strong> version.<br \/>\nExample: https:\/\/www.yourdomain.com<\/li>\n<li>Scroll down and click <strong>Save Changes<\/strong>.<\/li>\n<\/ol>\n<p>Your site will log you out and reload with the new address.<\/p>\n<p>This change only affects how WordPress loads URLs. It does <strong>not redirect<\/strong> non-WWW to WWW. You\u2019ll still need another method below to set a proper redirect.<\/p>\n<p>Use this to keep your WordPress settings consistent.<\/p>\n<ol start=\"2\">\n<li><strong> Add 301 Redirect in .htaccess File (Apache Servers)<\/strong><\/li>\n<\/ol>\n<p>This is the most effective method for sites using <strong>Apache hosting<\/strong>.<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<ol>\n<li>Access your site\u2019s root folder using <strong>FTP or File Manager<\/strong>.<\/li>\n<li>Locate the file named .htaccess.<\/li>\n<li>Download a backup copy before editing.<\/li>\n<li>Open the file and <strong>add this code at the top<\/strong>:<\/li>\n<\/ol>\n<p>RewriteEngine On<\/p>\n<p>RewriteCond %{HTTP_HOST} ^yourdomain\\.com [NC]<\/p>\n<p>RewriteRule ^(.*)$ http:\/\/www.yourdomain.com\/$1 [L,R=301]<\/p>\n<ol start=\"5\">\n<li>Replace yourdomain.com with your actual domain name.<\/li>\n<li>Save the file and upload it if needed.<\/li>\n<\/ol>\n<p>Now all visitors who type the non-WWW version will be redirected to the WWW version using a <strong>301 redirect<\/strong>.<\/p>\n<p>This is a <strong>permanent redirect<\/strong> and great for <strong>SEO<\/strong>.<\/p>\n<p><strong>Benefits:<\/strong><\/p>\n<ul>\n<li>Fast and server-level<\/li>\n<li>Ideal for long-term redirects<\/li>\n<li>Google recognizes 301 redirects for link value<\/li>\n<\/ul>\n<ol start=\"3\">\n<li><strong> Use a WordPress Redirection Plugin<\/strong><\/li>\n<\/ol>\n<p>If you&#8217;re not comfortable editing server files, use a plugin.<\/p>\n<p><strong>Recommended Plugins:<\/strong><\/p>\n<ul>\n<li><strong>Redirection<\/strong> \u2013 Free and powerful<\/li>\n<li><strong>All in One SEO<\/strong> \u2013 Premium plugin with redirect support<\/li>\n<li><strong>Yoast SEO Premium<\/strong> \u2013 Includes redirect manager<\/li>\n<\/ul>\n<p><strong>Steps (using Redirection plugin):<\/strong><\/p>\n<ol>\n<li>Install the <strong>Redirection plugin<\/strong> from the WordPress Plugins area.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Go to <strong>Tools &gt; Redirection<\/strong>.<\/li>\n<li>Click <strong>Add New Redirect<\/strong>.<\/li>\n<li>Set your Source URL:<br \/>\n\/ (this applies to homepage)<\/li>\n<li>Set Target URL:<br \/>\nhttps:\/\/www.yourdomain.com\/<\/li>\n<li>Choose <strong>301 Permanent<\/strong> as the redirect type.<\/li>\n<li>Click <strong>Add Redirect<\/strong>.<\/li>\n<\/ol>\n<p>This method works well but may be slightly slower than server redirects. It loads after WordPress is already running.<\/p>\n<p>Best for beginners or shared hosting users.<\/p>\n<ol start=\"4\">\n<li><strong> Update Home and Site URL in wp-config.php<\/strong><\/li>\n<\/ol>\n<p>This method hardcodes your website address inside your WordPress configuration file. It doesn\u2019t perform a redirect but ensures WordPress loads the correct version.<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<ol>\n<li>Open your site\u2019s root folder using FTP or File Manager.<\/li>\n<li>Locate the file named wp-config.php.<\/li>\n<li>Download a backup before editing.<\/li>\n<li>Open the file and look for a spot above this line:<br \/>\n\/* That&#8217;s all, stop editing! Happy publishing. *\/<\/li>\n<li>Add the following code:<\/li>\n<\/ol>\n<p>define(&#8216;WP_HOME&#8217;,&#8217;https:\/\/www.yourdomain.com&#8217;);<\/p>\n<p>define(&#8216;WP_SITEURL&#8217;,&#8217;https:\/\/www.yourdomain.com&#8217;);<\/p>\n<ol start=\"6\">\n<li>Save and upload the file.<\/li>\n<\/ol>\n<p>This prevents WordPress from using the non-WWW version in links or dashboard URLs.<\/p>\n<p><strong>Note:<\/strong> This does not redirect visitors. Use with another redirect method.<\/p>\n<ol start=\"5\">\n<li><strong> Set Permanent Redirect in cPanel Redirect Tool<\/strong><\/li>\n<\/ol>\n<p>If you use <strong>cPanel hosting<\/strong>, this is a quick and easy method.<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<ol>\n<li>Login to your <strong>cPanel account<\/strong>.<\/li>\n<li>Find the <strong>Redirects<\/strong> option under the <strong>Domains<\/strong> section.<\/li>\n<li>Choose <strong>301 Permanent<\/strong> as the redirect type.<\/li>\n<li>In the dropdown, select your <strong>non-WWW domain<\/strong>.<\/li>\n<li>In the &#8220;Redirects to&#8221; field, enter your <strong>www version<\/strong>, like https:\/\/www.yourdomain.com.<\/li>\n<li>Choose <strong>Only redirect with www<\/strong> if available.<\/li>\n<li>Check the box for <strong>Wild Card Redirect<\/strong>.<\/li>\n<li>Click <strong>Add<\/strong>.<\/li>\n<\/ol>\n<p>This will create a rule that redirects all traffic from non-WWW to WWW.<\/p>\n<p>Best for users on shared hosting or those without FTP access.<\/p>\n<ol start=\"6\">\n<li><strong> Configure Redirect via Cloudflare Page Rules<\/strong><\/li>\n<\/ol>\n<p>If your site uses <strong>Cloudflare CDN<\/strong>, you can use its Page Rules feature.<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<ol>\n<li>Login to your <strong>Cloudflare dashboard<\/strong>.<\/li>\n<li>Select your website.<\/li>\n<li>Go to the <strong>Rules<\/strong> section and choose <strong>Page Rules<\/strong>.<\/li>\n<li>Click <strong>Create Page Rule<\/strong>.<\/li>\n<li>Under the \u201cIf the URL matches\u201d box, enter:<br \/>\nhttp:\/\/yourdomain.com\/*<\/li>\n<li>Choose <strong>Forwarding URL<\/strong> as the setting.<\/li>\n<li>Select <strong>301 &#8211; Permanent Redirect<\/strong>.<\/li>\n<li>In the destination box, enter:<br \/>\nhttps:\/\/www.yourdomain.com\/$1<\/li>\n<li>Click <strong>Save and Deploy<\/strong>.<\/li>\n<\/ol>\n<p>Now, any visitor using the non-WWW version will be redirected to WWW before your server even loads.<\/p>\n<p><strong>Benefits:<\/strong><\/p>\n<ul>\n<li>Fast DNS-level redirect<\/li>\n<li>Works even if your hosting server is down<\/li>\n<li>Great for performance and security<\/li>\n<\/ul>\n<p>Free Cloudflare accounts include up to 3 Page Rules.<\/p>\n<ol start=\"7\">\n<li><strong> Update Nginx Server Block for WWW Redirect<\/strong><\/li>\n<\/ol>\n<p>This method is for websites hosted on <strong>Nginx servers<\/strong>. You need root or SSH access to edit server files.<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<ol>\n<li>Connect to your server using SSH.<\/li>\n<li>Open the Nginx config file for your site.<br \/>\nUsually located at: \/etc\/nginx\/sites-available\/yourdomain<\/li>\n<li>Add the following server block at the top:<\/li>\n<\/ol>\n<p>server {<\/p>\n<p>listen 80;<\/p>\n<p>server_name yourdomain.com;<\/p>\n<p>return 301 http:\/\/www.yourdomain.com$request_uri;<\/p>\n<p>}<\/p>\n<ol start=\"4\">\n<li>Save the file.<\/li>\n<li>Restart Nginx using the command:<br \/>\nsudo systemctl restart nginx<\/li>\n<\/ol>\n<p>This method is <strong>very fast and efficient<\/strong>, as it works at the web server level.<\/p>\n<p><strong>Warning:<\/strong> Only use this if you are confident with server management.<\/p>\n<ol start=\"8\">\n<li><strong> Set Preferred Domain in Google Search Console<\/strong><\/li>\n<\/ol>\n<p>This step doesn\u2019t create a redirect but helps with SEO. It tells Google which domain version to prioritize in search results.<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<ol>\n<li>Visit Google Search Console<\/li>\n<li>Add <strong>both versions<\/strong> of your domain (www and non-www)<\/li>\n<li>Verify ownership of both properties<\/li>\n<li>Set the <strong>preferred domain<\/strong> as the www version<\/li>\n<li>Submit a sitemap for the www version<\/li>\n<\/ol>\n<p>This helps Google index only one version of your content.<\/p>\n<p><strong>Note:<\/strong> This does not perform a redirect. It only affects how your site appears in search.<\/p>\n<p><strong>Which Method Should You Use?<\/strong><\/p>\n<p>Now that you know all the methods, it\u2019s time to choose. Each method has a purpose and works for different users. You don\u2019t need to apply them all. In fact, doing so may create redirect loops or conflicts.<\/p>\n<p><strong>For Beginners<\/strong><\/p>\n<p>If you\u2019re new to WordPress, use a plugin or cPanel.<\/p>\n<ul>\n<li>A <strong>redirection plugin<\/strong> is easy to install and manage.<\/li>\n<li>The <strong>cPanel redirect tool<\/strong> is user-friendly and requires no coding.<\/li>\n<\/ul>\n<p>These options are great for small websites or blogs. They provide enough control without technical setup.<\/p>\n<p><strong>For Shared Hosting Users<\/strong><\/p>\n<p>Most shared hosting uses <strong>Apache servers<\/strong>. If that\u2019s your case, editing the .htaccess file is ideal. It gives you a direct and fast <strong>301 redirect<\/strong>.<\/p>\n<ul>\n<li>Make sure to back up the file before editing.<\/li>\n<li>One small error can crash your site.<\/li>\n<\/ul>\n<p>This method is great for SEO and very efficient.<\/p>\n<p><strong>For Advanced Users<\/strong><\/p>\n<p>If you manage a VPS or cloud server, go with <strong>Nginx<\/strong>. This server-level redirect is the fastest option. It\u2019s highly efficient but requires server access and SSH skills.<\/p>\n<p>Alternatively, <strong>Cloudflare users<\/strong> can use Page Rules. It\u2019s fast, and works at the DNS level. This means it redirects traffic even before it hits your server.<\/p>\n<p><strong>Everyone Should Use This<\/strong><\/p>\n<p>No matter your skill level, <strong>set a preferred domain<\/strong> in Google Search Console. This doesn\u2019t redirect traffic but helps with indexing. It tells Google which version of your site to focus on.<\/p>\n<p><strong>Final Advice<\/strong><\/p>\n<p>Choose just <strong>one redirect method<\/strong> for best results. Don\u2019t combine multiple solutions. Pick the one that matches your hosting and technical comfort.<\/p>\n<h2 id=\"section-5\">Verify Your WordPress Redirect from non-WWW to WWW<\/h2>\n<p>Once you set up your redirect, you must test it properly. Testing ensures everything works and avoids hurting your SEO. It also helps you fix errors before your visitors see them.<\/p>\n<p>You can test redirects using simple tools and browser options. Here are some easy ways:<\/p>\n<ol>\n<li><strong> Use Online Redirect Checkers<\/strong><\/li>\n<\/ol>\n<p>These tools show you if the redirect is working. They also tell you what type of redirect is in place.<\/p>\n<p>Popular tools:<\/p>\n<ul>\n<li>https:\/\/www.redirect-checker.org<\/li>\n<li>https:\/\/httpstatus.io<\/li>\n<\/ul>\n<p>Just enter your <strong>non-WWW URL<\/strong> and check if it redirects to <strong>www version<\/strong>.<\/p>\n<ol start=\"2\">\n<li><strong> Use Browser Developer Tools<\/strong><\/li>\n<\/ol>\n<p>Open your site in Google Chrome or Firefox:<\/p>\n<ul>\n<li>Press <strong>F12<\/strong> or <strong>right-click &gt; Inspect<\/strong><\/li>\n<li>Go to the <strong>Network tab<\/strong><\/li>\n<li>Reload the page and check the <strong>status code<\/strong><\/li>\n<\/ul>\n<p>You should see a <strong>301 redirect<\/strong> from non-WWW to WWW.<\/p>\n<ol start=\"3\">\n<li><strong> Try Manually in the Browser<\/strong><\/li>\n<\/ol>\n<p>Open your browser and type http:\/\/yourdomain.com. If it changes to https:\/\/www.yourdomain.com, the redirect is working.<\/p>\n<p>Test different pages too:<\/p>\n<ul>\n<li>Homepage<\/li>\n<li>Blog posts<\/li>\n<li>Product pages<\/li>\n<\/ul>\n<p>Make sure all versions redirect correctly.<\/p>\n<h2 id=\"section-6\">Common Mistakes to Avoid<\/h2>\n<p>Setting up redirects may seem simple, but small mistakes can cause big issues. These issues may affect your website\u2019s SEO, speed, and user experience. Here are the most common mistakes to watch out for\u2014and how to avoid them.<\/p>\n<ul>\n<li><strong>Using Multiple Redirect Methods Together<br \/>\n<\/strong>\u00a0Some users try to set up redirects using several methods at once. For example, they add rules in .htaccess, use a plugin, and also enable Cloudflare rules. This can cause conflicts or redirect loops. Stick to one method to avoid problems.<\/li>\n<li><strong>Creating Redirect Loops<br \/>\n<\/strong>\u00a0A redirect loop happens when one URL keeps redirecting back to itself. Visitors will see an error like \u201cToo many redirects.\u201d This usually happens when two systems try to redirect the same URL. Always test your changes right after applying them.<\/li>\n<li><strong>Forgetting to Update SSL for the WWW Version<br \/>\n<\/strong>\u00a0If your SSL certificate only covers the non-WWW version, the www version might show a security warning. This can scare users away and harm trust. Make sure your SSL covers both www and non-www versions.<\/li>\n<li><strong>Leaving Old Links in Sitemap and Internal Pages<br \/>\n<\/strong>\u00a0If your sitemap or internal links still use the non-WWW version, Google may index both. This splits your SEO ranking between two versions. After the redirect, update your sitemap and resubmit it in Google Search Console.<\/li>\n<li><strong>Not Clearing Cache After Making Changes<br \/>\n<\/strong>\u00a0Caches store the old version of your site. If you test a redirect while the cache is active, you may not see the change. Clear your browser cache, plugin cache, and server cache after every update.<\/li>\n<\/ul>\n<h2 id=\"section-7\">Conclusion<\/h2>\n<p>Redirects may seem straightforward, but even a minor error can cause significant issues. Many WordPress users struggle with redirect loops, broken SSL, or mixed domain URLs. These problems can confuse visitors and even lower your Google rankings.<\/p>\n<p>If you\u2019re dealing with any of these challenges, or just want it done right, we\u2019re here to help. At <a href=\"https:\/\/www.woohelpdesk.com\/\">WooHelpDesk.com<\/a>, we provide expert WordPress support for all technical needs\u2014including redirect setup, SEO troubleshooting, and server configurations.<\/p>\n<p>Our team ensures your redirect is smooth, safe, and SEO-friendly.<\/p>\n<p>Need fast help? Call us now at <strong>+1 888 602 0119 (US &amp; Canada)<\/strong><br \/>\nOr visit<a href=\"https:\/\/www.woohelpdesk.com\/\"> <strong>WooHelpDesk.com<\/strong><\/a> to get started.<\/p>\n<p>Let experts handle the hard part while you focus on growing your site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Table of Contents Introduction Why www vs non-www Matters Preparation \u2013 Backup &amp; Planning Proven Methods to Redirect non-WWW to WWW in WordPress Verify Your WordPress Redirect from non-WWW to WWW Common Mistakes to Avoid Conclusion Introduction When you create a WordPress website, you can choose how the URL looks. Some websites start with &#8220;www&#8221;, [&hellip;]<\/p>\n<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing heateor_sss_bottom_sharing' style='width:29px;left: 10px;top: 250px;-webkit-box-shadow:none;box-shadow:none;' data-heateor-sss-href='https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/3758'><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3758\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=WooHelpDesk%20Blog%20%E2%80%93%20WordPress%20%26%20WooCommerce%20Tips%20and%20Tutorials%20-%20&url=https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3758\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3758\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><a aria-label=\"Pinterest\" class=\"heateor_sss_button_pinterest\" href=\"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/3758\" onclick=\"event.preventDefault();javascript:void( (function() {var e=document.createElement('script' );e.setAttribute('type','text\/javascript' );e.setAttribute('charset','UTF-8' );e.setAttribute('src','\/\/assets.pinterest.com\/js\/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());\" title=\"Pinterest\" rel=\"noopener\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_pinterest\" style=\"background-color:#cc2329;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"-2 -2 35 35\"><path fill=\"#fff\" d=\"M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z\"\/><\/svg><\/span><\/a><a aria-label=\"Telegram\" class=\"heateor_sss_button_telegram\" href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3758&text=WooHelpDesk%20Blog%20%E2%80%93%20WordPress%20%26%20WooCommerce%20Tips%20and%20Tutorials%20-%20\" title=\"Telegram\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_telegram\" style=\"background-color:#3da5f1;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M25.515 6.896L6.027 14.41c-1.33.534-1.322 1.276-.243 1.606l5 1.56 1.72 5.66c.226.625.115.873.77.873.506 0 .73-.235 1.012-.51l2.43-2.363 5.056 3.734c.93.514 1.602.25 1.834-.863l3.32-15.638c.338-1.363-.52-1.98-1.41-1.577z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Whatsapp\" class=\"heateor_sss_whatsapp\" href=\"https:\/\/api.whatsapp.com\/send?text=WooHelpDesk%20Blog%20%E2%80%93%20WordPress%20%26%20WooCommerce%20Tips%20and%20Tutorials%20-%20%20https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3758\" title=\"Whatsapp\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#55eb4c;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"-6 -5 40 40\"><path class=\"heateor_sss_svg_stroke heateor_sss_no_fill\" stroke=\"#fff\" stroke-width=\"2\" fill=\"none\" d=\"M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046\"><\/path><path d=\"M 7 19 l -1 6 l 6 -1\" class=\"heateor_sss_no_fill heateor_sss_svg_stroke\" stroke=\"#fff\" stroke-width=\"2\" fill=\"none\"><\/path><path d=\"M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div>","protected":false},"author":1,"featured_media":3760,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-3758","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-errors"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/3758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/comments?post=3758"}],"version-history":[{"count":3,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/3758\/revisions"}],"predecessor-version":[{"id":4445,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/3758\/revisions\/4445"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/media\/3760"}],"wp:attachment":[{"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/media?parent=3758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/categories?post=3758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/tags?post=3758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}