{"id":4195,"date":"2017-10-17T17:35:01","date_gmt":"2017-10-17T17:35:01","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2017\/10\/17\/302-redirects\/"},"modified":"2023-07-18T12:18:18","modified_gmt":"2023-07-18T16:18:18","slug":"302-redirects","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/","title":{"rendered":"When to Create a 302 Redirect"},"content":{"rendered":"<p>Redirects are used for a variety purposes and it is important that you use the appropriate redirect type for your website when it becomes necessary to use them. The two types of redirects are:<\/p>\n<ul>\n<li><strong>301 redirect<\/strong> \u2013 used for permanent changes to the site URL<\/li>\n<li><strong>302 redirect<\/strong> \u2013 used for temporary changes to the site URL<\/li>\n<\/ul>\n<h2>When you should use a 302 redirect<\/h2>\n<h3>When to use a 301 redirect over a 302 redirect<\/h3>\n<p>When would you use a 301 over a 302 redirect. Anytime that you need to make a <em>permanent<\/em> change to the URL and you want to make sure that search engines are made aware of the change, then you want use a 301 redirect. For example, if you purchased an SSL Certificate for your website and you need to implement it, then your URL will change from <a href=\"\/support\/website\/ssl\/how-to-force-https-using-the-htaccess-file\/\">HTTP to HTTPS<\/a>.<\/p>\n<h3>When to use a 302 redirect over a 301 redirect<\/h3>\n<p>The condition in which you use a <strong>302 redirect over a 301 redirect<\/strong> is when the change is only temporary. This notification prevents search engines from changing search results for that particular URL. A good example of this is if you are testing a change on your website when it is accessible through the internet. A change of a live website page may alter the search results of the site is crawled by the search engine. In this case you do not want the search engine to note that change. The use of a 302 redirect indicates to the search engine that the change is only temporary.<\/p>\n<h2>How to Create a 302 redirect in cPanel<\/h2>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\">Login to cPanel<\/a><\/li>\n<li>Go to the <strong>Domains<\/strong> section and then click on <strong>Redirects<\/strong><br>\n<img decoding=\"async\" width=\"904\" height=\"499\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png\" class=\"optimized-lcp-image\" alt=\"Domain section\" loading=\"eager\" fetchpriority=\"high\" sizes=\"(max-width: 768px) 100vw, 768px\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png 904w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main-300x166.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main-768x424.png 768w\"><\/li>\n<li>Click on the drop-down menu to select the <strong>Temporary (302)<\/strong><br>\n<img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_choose-temporary-redirect.png\" alt=\"Select 302 redirect\"><\/li>\n<li>Fill in the information for the re-direct, then click on <strong>Add<\/strong> in order to add the redirect.<br>\n<img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_302-add.png\" alt=\"Click on Add\"><\/li>\n<\/ol>\n<p>When the redirect is in place make sure that you complete the process for which are using the temporary change of URL. Remember that the change should remain temporary. The redirect should be removed once the need for the temporary URL is complete. For more information please see the tutorial on <a href=\"\/support\/website\/setting-up-a-301-permanent-redirect-via-htaccess\/\">Setting up 301 Redirects<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redirects are used for a variety purposes and it is important that you use the appropriate redirect type for your website when it becomes necessary to use them. The two types of redirects are: 301 redirect \u2013 used for permanent changes to the site URL 302 redirect \u2013 used for temporary changes to the site<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/\"> Read More ><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-4195","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>When to Create a 302 Redirect | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how and when to create redirects using the cPanel interface\" \/>\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.inmotionhosting.com\/support\/website\/302-redirects\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"When to Create a 302 Redirect | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how and when to create redirects using the cPanel interface\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-17T17:35:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-18T16:18:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\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:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\"},\"headline\":\"When to Create a 302 Redirect\",\"datePublished\":\"2017-10-17T17:35:01+00:00\",\"dateModified\":\"2023-07-18T16:18:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/\"},\"wordCount\":352,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png\",\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/\",\"name\":\"When to Create a 302 Redirect | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png\",\"datePublished\":\"2017-10-17T17:35:01+00:00\",\"dateModified\":\"2023-07-18T16:18:18+00:00\",\"description\":\"Learn how and when to create redirects using the cPanel interface\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png\",\"width\":904,\"height\":499,\"caption\":\"Domain section\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"When to Create a 302 Redirect\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"When to Create a 302 Redirect | InMotion Hosting","description":"Learn how and when to create redirects using the cPanel interface","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.inmotionhosting.com\/support\/website\/302-redirects\/","og_locale":"en_US","og_type":"article","og_title":"When to Create a 302 Redirect | InMotion Hosting","og_description":"Learn how and when to create redirects using the cPanel interface","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2017-10-17T17:35:01+00:00","article_modified_time":"2023-07-18T16:18:18+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b"},"headline":"When to Create a 302 Redirect","datePublished":"2017-10-17T17:35:01+00:00","dateModified":"2023-07-18T16:18:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/"},"wordCount":352,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png","articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/","name":"When to Create a 302 Redirect | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png","datePublished":"2017-10-17T17:35:01+00:00","dateModified":"2023-07-18T16:18:18+00:00","description":"Learn how and when to create redirects using the cPanel interface","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/302-redirects_cpanel-main.png","width":904,"height":499,"caption":"Domain section"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/302-redirects\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"When to Create a 302 Redirect"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4288,"name":"Website","slug":"website","link":"https:\/\/www.inmotionhosting.com\/support\/website\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4195"}],"version-history":[{"count":4,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4195\/revisions"}],"predecessor-version":[{"id":105717,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4195\/revisions\/105717"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}