{"id":232,"date":"2021-02-28T02:58:31","date_gmt":"2021-02-28T02:58:31","guid":{"rendered":"https:\/\/hoganhost.com.ng\/blog\/?p=232"},"modified":"2024-08-12T13:34:58","modified_gmt":"2024-08-12T12:34:58","slug":"htaccess-redirect-to-https-and-www","status":"publish","type":"post","link":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/","title":{"rendered":".htaccess redirect to https and www"},"content":{"rendered":"<p>If your site is serving secure pages via the\u00a0<abbr title=\"Hypertext Transfer Protocol Secure\">HTTPS<\/abbr>\u00a0protocol (i.e., via\u00a0<abbr title=\"Secure Sockets Layer\">SSL<\/abbr>\/<abbr title=\"Transport Layer Security\">TLS<\/abbr>), you may need a technique to\u00a0redirect all HTTP requests to HTTPS. Then to go further with your canonicalization efforts, you may also want to\u00a0redirect all www requests to non-www\u00a0(or vice versa). Both of these techniques are essential for serving canonical versions of your web pages, so why not\u00a0<strong>combine them<\/strong>\u00a0into single, simple slice of\u00a0.htaccess? Read on to learn how..<\/p>\n<p>&nbsp;<\/p>\n<h3>Redirect to https and non-www<\/h3>\n<p>To instead redirect all requests to\u00a0<em>https and non-www<\/em>, use the following code instead of the previous:<\/p>\n<pre><code># Canonical HTTPS\/non-WWW\r\n&lt;IfModule mod_rewrite.c&gt;\r\n\tRewriteCond %{HTTPS} off [OR]\r\n\tRewriteCond %{HTTP_HOST} ^www\\.example\\.com [NC]\r\n\tRewriteRule (.*) https:\/\/example.com\/$1 [L,R=301]\r\n&lt;\/IfModule&gt;<\/code><\/pre>\n<p>As before, place this code in the root .htaccess of your site. Here is what it&#8217;s doing:<\/p>\n<ol>\n<li>Checks if\u00a0<code>mod_rewrite<\/code>\u00a0is available<\/li>\n<li>Checks if HTTPS is off, or if the request includes\u00a0<code>www<\/code><\/li>\n<li>If either condition matches, the request qualifies and is redirected to the\u00a0<code>https\/non-www<\/code>\u00a0address<\/li>\n<\/ol>\n<p>When placed in the root .htaccess, this technique covers\u00a0<em>all<\/em>\u00a0requests, providing complete https\/non-www canonicalization for your site. Remember to replace the two instances of\u00a0<code>example.com<\/code>\u00a0with your own domain name.<\/p>\n<p><strong>Note:<\/strong>\u00a0if your site is suffering from duplicate pages because of\u00a0<code>index.php<\/code>\u00a0appended to requested URLs, check out this post at WP-Mix.com that explains how to\u00a0remove www and index.php from the URL.<\/p>\n<h3>Redirect to https and www<\/h3>\n<p>The following .htaccess technique redirects qualified requests to the\u00a0<em>https and www<\/em>\u00a0versions of your web pages. Add to your site&#8217;s root\u00a0.htaccess file:<\/p>\n<pre><code># Canonical https\/www\r\n&lt;IfModule mod_rewrite.c&gt;\r\n\tRewriteCond %{HTTPS} off\r\n\tRewriteRule (.*) https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\r\n\t\r\n\tRewriteCond %{HTTP_HOST} !^www\\. [NC]\r\n\tRewriteRule (.*) https:\/\/www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\r\n&lt;\/IfModule&gt;<\/code><\/pre>\n<p>This code does the following:<\/p>\n<ol>\n<li>The first two lines conditionally redirect to https. If the\u00a0<code>HTTPS<\/code>\u00a0variable is set to off, then the request is redirected to https (see notes below if using a proxy).<\/li>\n<li>The second two lines redirect to www. If the request\/host does not begin with\u00a0<code>www.<\/code>, the request is redirected to www.<\/li>\n<\/ol>\n<p>When placed in the root .htaccess, this technique covers\u00a0<em>all<\/em>\u00a0requests, providing complete https\/www canonicalization for your site. No editing is required with this code; it&#8217;s entirely plug-n-play.<\/p>\n<h4>Notes if using a proxy<\/h4>\n<p>&#8220;When behind some forms of proxying, whereby the client is connecting via HTTPS to a proxy, load balancer, Passenger application, etc., the\u00a0<code>%{HTTPS}<\/code>\u00a0variable may never be\u00a0<code>on<\/code>\u00a0and cause a rewrite loop. This is because your application is actually receiving plain HTTP traffic even though the client and the proxy\/load balancer are using HTTPS. In these cases, check the\u00a0<code>X-Forwarded-Proto<\/code>\u00a0header instead of the\u00a0<code>%{HTTPS}<\/code>\u00a0variable.&#8221;<\/p>\n<p>So if you are using some sort of proxy service or similar, add the following line to the above code:<\/p>\n<pre><code>RewriteCond %{HTTP:X-Forwarded-Proto} !https<\/code><\/pre>\n<p>So the final result looks like this if using a proxy server:<\/p>\n<pre><code># Canonical https\/www (when using proxy)\r\n&lt;IfModule mod_rewrite.c&gt;\r\n\tRewriteCond %{HTTP:X-Forwarded-Proto} !https\r\n\tRewriteCond %{HTTPS} off\r\n\tRewriteRule (.*) https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\r\n\t\r\n\tRewriteCond %{HTTP_HOST} !^www\\. [NC]\r\n\tRewriteRule (.*) https:\/\/www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\r\n&lt;\/IfModule&gt;<\/code><\/pre>\n<p>Hola, we hope this help check out our cheap web hosting <a href=\"http:\/\/Hoganhost.com.ng\">Hoganhost.com.ng<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your site is serving secure pages via the\u00a0HTTPS\u00a0protocol (i.e., via\u00a0SSL\/TLS), you may need a technique to\u00a0redirect all HTTP requests [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":96,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>.htaccess redirect to https and www - HoganHost blog<\/title>\n<meta name=\"description\" content=\"If your site is serving secure pages via the\u00a0HTTPS\u00a0protocol (i.e., via\u00a0SSL\/TLS), you may need a technique to\u00a0redirect all HTTP requests to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\".htaccess redirect to https and www - HoganHost blog\" \/>\n<meta property=\"og:description\" content=\"If your site is serving secure pages via the\u00a0HTTPS\u00a0protocol (i.e., via\u00a0SSL\/TLS), you may need a technique to\u00a0redirect all HTTP requests to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/\" \/>\n<meta property=\"og:site_name\" content=\"HoganHost blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/HoganHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-28T02:58:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-12T12:34:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"480\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abigal okon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hoganhostng\" \/>\n<meta name=\"twitter:site\" content=\"@hoganhostng\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abigal okon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/\"},\"author\":{\"name\":\"Abigal okon\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a\"},\"headline\":\".htaccess redirect to https and www\",\"datePublished\":\"2021-02-28T02:58:31+00:00\",\"dateModified\":\"2024-08-12T12:34:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/\"},\"wordCount\":446,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png\",\"articleSection\":[\"Cpanel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/\",\"name\":\".htaccess redirect to https and www - HoganHost blog\",\"isPartOf\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png\",\"datePublished\":\"2021-02-28T02:58:31+00:00\",\"dateModified\":\"2024-08-12T12:34:58+00:00\",\"description\":\"If your site is serving secure pages via the\u00a0HTTPS\u00a0protocol (i.e., via\u00a0SSL\/TLS), you may need a technique to\u00a0redirect all HTTP requests to\",\"breadcrumb\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#primaryimage\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png\",\"contentUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png\",\"width\":1024,\"height\":480},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hoganhost.com.ng\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\".htaccess redirect to https and www\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#website\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/\",\"name\":\"HoganHost blog\",\"description\":\"Keeping you connected to everything from HoganHost\",\"publisher\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hoganhost.com.ng\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\",\"name\":\"HoganHost\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png\",\"contentUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png\",\"width\":466,\"height\":387,\"caption\":\"HoganHost\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/HoganHost\",\"https:\/\/x.com\/hoganhostng\",\"https:\/\/instagram.com\/officialhoganhost\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a\",\"name\":\"Abigal okon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g\",\"caption\":\"Abigal okon\"},\"sameAs\":[\"https:\/\/hoganhost.com.ng\/blog\"],\"url\":\"https:\/\/hoganhost.com.ng\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":".htaccess redirect to https and www - HoganHost blog","description":"If your site is serving secure pages via the\u00a0HTTPS\u00a0protocol (i.e., via\u00a0SSL\/TLS), you may need a technique to\u00a0redirect all HTTP requests to","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:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/","og_locale":"en_US","og_type":"article","og_title":".htaccess redirect to https and www - HoganHost blog","og_description":"If your site is serving secure pages via the\u00a0HTTPS\u00a0protocol (i.e., via\u00a0SSL\/TLS), you may need a technique to\u00a0redirect all HTTP requests to","og_url":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/","og_site_name":"HoganHost blog","article_publisher":"https:\/\/facebook.com\/HoganHost","article_published_time":"2021-02-28T02:58:31+00:00","article_modified_time":"2024-08-12T12:34:58+00:00","og_image":[{"width":1024,"height":480,"url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png","type":"image\/png"}],"author":"Abigal okon","twitter_card":"summary_large_image","twitter_creator":"@hoganhostng","twitter_site":"@hoganhostng","twitter_misc":{"Written by":"Abigal okon","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#article","isPartOf":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/"},"author":{"name":"Abigal okon","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a"},"headline":".htaccess redirect to https and www","datePublished":"2021-02-28T02:58:31+00:00","dateModified":"2024-08-12T12:34:58+00:00","mainEntityOfPage":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/"},"wordCount":446,"commentCount":0,"publisher":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#organization"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#primaryimage"},"thumbnailUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png","articleSection":["Cpanel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/","url":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/","name":".htaccess redirect to https and www - HoganHost blog","isPartOf":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#primaryimage"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#primaryimage"},"thumbnailUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png","datePublished":"2021-02-28T02:58:31+00:00","dateModified":"2024-08-12T12:34:58+00:00","description":"If your site is serving secure pages via the\u00a0HTTPS\u00a0protocol (i.e., via\u00a0SSL\/TLS), you may need a technique to\u00a0redirect all HTTP requests to","breadcrumb":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#primaryimage","url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png","contentUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/02\/install-wordpress-2-1024x480-1.png","width":1024,"height":480},{"@type":"BreadcrumbList","@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/htaccess-redirect-to-https-and-www\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hoganhost.com.ng\/blog\/"},{"@type":"ListItem","position":2,"name":".htaccess redirect to https and www"}]},{"@type":"WebSite","@id":"https:\/\/hoganhost.com.ng\/blog\/#website","url":"https:\/\/hoganhost.com.ng\/blog\/","name":"HoganHost blog","description":"Keeping you connected to everything from HoganHost","publisher":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hoganhost.com.ng\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hoganhost.com.ng\/blog\/#organization","name":"HoganHost","url":"https:\/\/hoganhost.com.ng\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png","contentUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png","width":466,"height":387,"caption":"HoganHost"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/HoganHost","https:\/\/x.com\/hoganhostng","https:\/\/instagram.com\/officialhoganhost"]},{"@type":"Person","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a","name":"Abigal okon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g","caption":"Abigal okon"},"sameAs":["https:\/\/hoganhost.com.ng\/blog"],"url":"https:\/\/hoganhost.com.ng\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":3,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":235,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/232\/revisions\/235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/media\/96"}],"wp:attachment":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}