{"id":8492,"date":"2022-09-02T11:39:17","date_gmt":"2022-09-02T11:39:17","guid":{"rendered":"https:\/\/clustercs.com\/kb\/?docs=docly-documentation\/speed-optimizations\/actions\/speed-engine-seo-redirect"},"modified":"2022-09-05T10:14:57","modified_gmt":"2022-09-05T10:14:57","slug":"speed-engine-seo-redirect","status":"publish","type":"docs","link":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/","title":{"rendered":"Speed Engine \u2013 SEO Redirect"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>It is very often desired to have only one form of the URL (with or without www) and sometimes to enforce all traffic to be https.<\/p>\n\n\n\n<p>\u201cSEO Redirect\u201d action solves these two problems in a simple rule setup and ensures the usage of a single redirect from any original format to your target URL type. Furthermore, these redirects are emitted directly by the HAproxy entry point, which avoids loading a backend web service with this processing.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png\"><img decoding=\"async\" src=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>Since most of the times these redirects need to happen on all URLs, you can use a generic condition that would cover all cases such as \u201cPath\u201d begins with \u201c\/\u201d.<\/p>\n\n\n\n<p>The target URL format is defined by the scheme redirect type (\u201cscheme_http\u201d, \u201cscheme_https\u201d or \u201cleave_unchanged\u201d) and by the \u201cwww redirect\u201d type (\u201cWith www\u201d, \u201cWithout www\u201d or \u201cLeave unchanged\u201d).<\/p>\n\n\n\n<p><strong>The \u201credirect type\u201d filed specifies the redirect code to be used in the response. Available codes are:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>301 \u2013 Permanent redirect<\/strong><\/li><li><strong>302 \u2013 Temporary redirect<\/strong><\/li><li><strong>307 \u2013 Temporary Redirect and keep method<\/strong><\/li><li><strong>308 \u2013 Permanent Redirect and keep method<\/strong><\/li><\/ul>\n\n\n\n<p>307 and 308 response codes are a bit lesser known codes and they function as their 301 and 302 counterparts but additionally instruct the browsers to keep the same method and parameters (i.e. POST method and parameters) when calling the target URL.<\/p>\n\n\n\n<p>If you do not require a \u201cwww redirect\u201d type (specified with \u201cLeave unchanged\u201d) and you only need a http\/https redirect, a small processing optimization can be achieved by specified a condition for the initial schema. For example, when redirecting to https you can specify a \u201cschema\u201d condition \u201chttp\u201d and vice versa for redirects to http, you can specify a \u201cschema\u201d condition \u201chttps\u201d. This optimizes a bit rule placement and evaluation in HAproxy and avoids unnecessary processing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is very often desired to have only one form of the URL (with or without www) and sometimes to enforce all traffic to be https. \u201cSEO Redirect\u201d action solves these two problems in a simple rule setup and ensures the usage of a single redirect from any original format to your target URL type. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":8489,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-8492","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Speed Engine \u2013 SEO Redirect - ClusterCS Knowledge Base<\/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:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Speed Engine \u2013 SEO Redirect - ClusterCS Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"It is very often desired to have only one form of the URL (with or without www) and sometimes to enforce all traffic to be https. \u201cSEO Redirect\u201d action solves these two problems in a simple rule setup and ensures the usage of a single redirect from any original format to your target URL type. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/\" \/>\n<meta property=\"og:site_name\" content=\"ClusterCS Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-05T10:14:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/\",\"url\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/\",\"name\":\"Speed Engine \u2013 SEO Redirect - ClusterCS Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/clustercs.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png\",\"datePublished\":\"2022-09-02T11:39:17+00:00\",\"dateModified\":\"2022-09-05T10:14:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#primaryimage\",\"url\":\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png\",\"contentUrl\":\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/clustercs.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ClusterCS Documentation\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Speed Optimizations\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Actions\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Speed Engine \u2013 SEO Redirect\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/clustercs.com\/kb\/#website\",\"url\":\"https:\/\/clustercs.com\/kb\/\",\"name\":\"ClusterCS Knowledge Base\",\"description\":\"Welcome to ClusterCS Documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/clustercs.com\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Speed Engine \u2013 SEO Redirect - ClusterCS Knowledge Base","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:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/","og_locale":"en_US","og_type":"article","og_title":"Speed Engine \u2013 SEO Redirect - ClusterCS Knowledge Base","og_description":"It is very often desired to have only one form of the URL (with or without www) and sometimes to enforce all traffic to be https. \u201cSEO Redirect\u201d action solves these two problems in a simple rule setup and ensures the usage of a single redirect from any original format to your target URL type. [&hellip;]","og_url":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/","og_site_name":"ClusterCS Knowledge Base","article_modified_time":"2022-09-05T10:14:57+00:00","og_image":[{"url":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/","url":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/","name":"Speed Engine \u2013 SEO Redirect - ClusterCS Knowledge Base","isPartOf":{"@id":"https:\/\/clustercs.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#primaryimage"},"image":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#primaryimage"},"thumbnailUrl":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png","datePublished":"2022-09-02T11:39:17+00:00","dateModified":"2022-09-05T10:14:57+00:00","breadcrumb":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#primaryimage","url":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png","contentUrl":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_seo_redirect.png"},{"@type":"BreadcrumbList","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/speed-engine-seo-redirect\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/clustercs.com\/kb\/"},{"@type":"ListItem","position":2,"name":"ClusterCS Documentation","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/"},{"@type":"ListItem","position":3,"name":"Speed Optimizations","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/"},{"@type":"ListItem","position":4,"name":"Actions","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/"},{"@type":"ListItem","position":5,"name":"Speed Engine \u2013 SEO Redirect"}]},{"@type":"WebSite","@id":"https:\/\/clustercs.com\/kb\/#website","url":"https:\/\/clustercs.com\/kb\/","name":"ClusterCS Knowledge Base","description":"Welcome to ClusterCS Documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/clustercs.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/comments?post=8492"}],"version-history":[{"count":2,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8492\/revisions"}],"predecessor-version":[{"id":8685,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8492\/revisions\/8685"}],"up":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8489"}],"wp:attachment":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/media?parent=8492"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=8492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}