{"id":224,"date":"2020-01-12T19:24:20","date_gmt":"2020-01-12T13:54:20","guid":{"rendered":"https:\/\/www.peppypage.com\/content\/?p=224"},"modified":"2020-01-12T22:03:09","modified_gmt":"2020-01-12T16:33:09","slug":"redirect-www-to-non-www","status":"publish","type":"post","link":"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/","title":{"rendered":"Redirect WWW to NON-WWW"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>We have recently posted a guide to redirect<a href=\"https:\/\/www.peppypage.com\/content\/htaccess-redirect-to-www\/\"> non-www requests to www<\/a>. This guide explains how to redirect www to non-www.<\/p><\/blockquote>\n\n\n\n<h3><span style=\"text-decoration: underline;\">Requirements<\/span><\/h3>\n\n\n\n<ul><li>Access to website files<\/li><li>Write permissions for .htaccess file<\/li><li>If .htaccess file not found in file manage (domain\/web root), create one with name .htaccess<\/li><\/ul>\n\n\n\n<h3><span style=\"text-decoration: underline;\">How to redirect www domain pages to non-www domain pages<\/span><\/h3>\n\n\n\n<p>Add the following code to your .htaccess file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RewriteEngine On\nRewriteBase \/\nRewriteCond %{HTTP_HOST} ^www\\.(.*)$ &#91;NC]\nRewriteRule ^(.*)$ %{REQUEST_SCHEME}:\/\/%1\/$1 &#91;R=301,L]<\/code><\/pre>\n\n\n\n<p>Drop your comment if it the above htaccess rules not working.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have recently posted a guide to redirect non-www requests to www. This guide explains how to redirect www to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":54,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,6,2,1],"tags":[35,36],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Redirect WWW to NON-WWW - Domain, Web Hosting and Cloud Hosting Trends<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redirect WWW to NON-WWW - Domain, Web Hosting and Cloud Hosting Trends\" \/>\n<meta property=\"og:description\" content=\"We have recently posted a guide to redirect non-www requests to www. This guide explains how to redirect www to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/\" \/>\n<meta property=\"og:site_name\" content=\"Domain, Web Hosting and Cloud Hosting Trends\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-12T13:54:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-12T16:33:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.peppypage.com\/content\/wp-content\/uploads\/2018\/11\/building-1989816_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1095\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"bharathsde\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"bharathsde\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.peppypage.com\/content\/#website\",\"url\":\"https:\/\/www.peppypage.com\/content\/\",\"name\":\"Domain, Web Hosting and Cloud Hosting Trends\",\"description\":\"Learn how to secure your app and website\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.peppypage.com\/content\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/\",\"url\":\"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/\",\"name\":\"Redirect WWW to NON-WWW - Domain, Web Hosting and Cloud Hosting Trends\",\"isPartOf\":{\"@id\":\"https:\/\/www.peppypage.com\/content\/#website\"},\"datePublished\":\"2020-01-12T13:54:20+00:00\",\"dateModified\":\"2020-01-12T16:33:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/33a613ea798a2b94d8ec79faa0f76403\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.peppypage.com\/content\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Redirect WWW to NON-WWW\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/33a613ea798a2b94d8ec79faa0f76403\",\"name\":\"bharathsde\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6d56691d057a81ea8a03b12c51675abb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6d56691d057a81ea8a03b12c51675abb?s=96&d=mm&r=g\",\"caption\":\"bharathsde\"},\"url\":\"https:\/\/www.peppypage.com\/content\/author\/bharathsde\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Redirect WWW to NON-WWW - Domain, Web Hosting and Cloud Hosting Trends","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:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/","og_locale":"en_US","og_type":"article","og_title":"Redirect WWW to NON-WWW - Domain, Web Hosting and Cloud Hosting Trends","og_description":"We have recently posted a guide to redirect non-www requests to www. This guide explains how to redirect www to [&hellip;]","og_url":"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/","og_site_name":"Domain, Web Hosting and Cloud Hosting Trends","article_published_time":"2020-01-12T13:54:20+00:00","article_modified_time":"2020-01-12T16:33:09+00:00","og_image":[{"width":1920,"height":1095,"url":"https:\/\/www.peppypage.com\/content\/wp-content\/uploads\/2018\/11\/building-1989816_1920.jpg","type":"image\/jpeg"}],"author":"bharathsde","twitter_card":"summary_large_image","twitter_misc":{"Written by":"bharathsde"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.peppypage.com\/content\/#website","url":"https:\/\/www.peppypage.com\/content\/","name":"Domain, Web Hosting and Cloud Hosting Trends","description":"Learn how to secure your app and website","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.peppypage.com\/content\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/","url":"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/","name":"Redirect WWW to NON-WWW - Domain, Web Hosting and Cloud Hosting Trends","isPartOf":{"@id":"https:\/\/www.peppypage.com\/content\/#website"},"datePublished":"2020-01-12T13:54:20+00:00","dateModified":"2020-01-12T16:33:09+00:00","author":{"@id":"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/33a613ea798a2b94d8ec79faa0f76403"},"breadcrumb":{"@id":"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.peppypage.com\/content\/redirect-www-to-non-www\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.peppypage.com\/content\/"},{"@type":"ListItem","position":2,"name":"Redirect WWW to NON-WWW"}]},{"@type":"Person","@id":"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/33a613ea798a2b94d8ec79faa0f76403","name":"bharathsde","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6d56691d057a81ea8a03b12c51675abb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d56691d057a81ea8a03b12c51675abb?s=96&d=mm&r=g","caption":"bharathsde"},"url":"https:\/\/www.peppypage.com\/content\/author\/bharathsde\/"}]}},"_links":{"self":[{"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/posts\/224"}],"collection":[{"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":7,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":231,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/posts\/224\/revisions\/231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/media\/54"}],"wp:attachment":[{"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}