{"id":7200,"date":"2019-05-28T06:10:56","date_gmt":"2019-05-28T06:10:56","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=7200"},"modified":"2019-05-28T06:10:56","modified_gmt":"2019-05-28T06:10:56","slug":"easy-steps-to-create-301-redirect","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/","title":{"rendered":"Easy steps to create 301 Redirect"},"content":{"rendered":"<p>301 redirect is a type of permanent redirect from one URL to another. 301 redirects users and search engines to a different URL than the one they have actually inserted in their browser.<\/p>\n<h2># Creating a 301 Redirect Using .htaccess<\/h2>\n<p>1. Log in to <strong>Control Panel<\/strong>.<\/p>\n<p>2. Go to <strong>.htaccess Editor<\/strong>.<\/p>\n<p>3. Go to <strong>Direct Editor<\/strong>.<\/p>\n<p>4. Click on <strong>Change<\/strong> to select in which directory you want to place the 301 redirects.<\/p>\n<p>5. Add any one of the following given code snippets into your <strong>.htaccess<\/strong> <strong>file<\/strong> depending on the task that you want to perform :<\/p>\n<h3>1) Old to a new domain<\/h3>\n<pre class=\"trim-whitespace:false lang:default decode:true \">RewriteEngine on\r\n\r\nRewriteCond %{HTTP_HOST} ^OLDDOMAIN.com [NC,OR]\r\n\r\nRewriteCond %{HTTP_HOST} ^www.OLDDOMAIN.com [NC]\r\n\r\nRewriteRule ^(.*)$ http:\/\/NEWDOMAIN.net\/$1 [L, R=301,NC]<\/pre>\n<p>It will Update &#8220;OLDDOMAIN&#8221; to the old domain that you want to redirect to and will update your &#8220;NEWDOMAIN&#8221; to the domain to which it is already redirecting.<\/p>\n<h3>2) Https Redirect :<\/h3>\n<pre class=\"trim-whitespace:false lang:default decode:true \">RewriteEngine On\r\n\r\nRewriteCond %{HTTP_HOST} ^DOMAIN.com [NC]\r\n\r\nRewriteCond %{SERVER_PORT} 80\r\n\r\nRewriteRule ^(.*)$ https:\/\/www.DOMAIN.com\/$1 [R=301,L]<\/pre>\n<p>It will Update the &#8220;DOMAIN&#8221; to the domain that requires the redirect from HTTP to HTTPS.<\/p>\n<p>6. Click on <strong>Save<\/strong>.<\/p>\n<p><strong>Related:\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/redirect-http-to-https-wordpress\/\">Learn to Redirect HTTP to HTTPS in WordPress with Simple Steps<\/a><\/strong><\/p>\n<h2>#Creating a 301 Redirect Using IIS Administration Console<\/h2>\n<div style=\"background-color: #e0ffff;padding: 10px\">Note: The IIS Administration Console is available on Windows hosting accounts only.<\/div>\n<p>1. Log in to <strong>Control Panel<\/strong>.<\/p>\n<p>2. Go to the <strong>IIS Administration Console<\/strong>.<\/p>\n<p>3. Click on <strong>Change<\/strong> to choose the directory from where you want to redirect.<\/p>\n<p>4. Expand the URL Redirects by clicking on the <strong>&#8216;+&#8217;<\/strong> button.<\/p>\n<p>5. In the URL text box, enter the <strong>URL<\/strong> that you want to redirect to.<\/p>\n<p>6. Check the <strong>Permanent Redirect<\/strong>.<\/p>\n<p>7. Click on <strong>Set Redirect<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-Redirect-min.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7201 size-full\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-Redirect-min.png\" alt=\"301 \" width=\"691\" height=\"419\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-Redirect-min.png 691w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-Redirect-min-300x182.png 300w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/a><\/p>\n<p>That&#8217;s it!<br \/>\nNow, you have successfully created 301 redirects.<\/p>\n<p><strong>Also Read :<\/strong><\/p>\n<p><strong>1)<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/can-create-different-types-web-redirects-cpanel\/\">How Can I Create Different Types Of Web Redirects Through cPanel?<\/a><\/strong><\/p>\n<p><strong>2)\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-set-multiple-redirects-for-email-account-from-plesk\/\">How To Set Multiple Redirects For Email Account From Plesk?<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>301 redirect is a type of permanent redirect from one URL to another. 301 redirects users and search engines to a different URL than the one they have actually inserted in their browser. # Creating a 301 Redirect Using .htaccess 1. Log in to Control Panel. 2. Go to .htaccess Editor. 3. Go to Direct [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":7202,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[279],"class_list":["post-7200","post","type-post","status-publish","format-standard","has-post-thumbnail","placeholder-for-hentry","category-web-hosting-faq","tag-301-redirects"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Easy steps to create 301 Redirect - Web Hosting FAQs by MilesWeb<\/title>\n<meta name=\"description\" content=\"301 redirect allows you to direct your users from one URL to another. Learn easy steps to create 301 redirects in this article.\" \/>\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.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Easy steps to create 301 Redirect - Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"og:description\" content=\"301 redirect allows you to direct your users from one URL to another. Learn easy steps to create 301 redirects in this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-28T06:10:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"445\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sonam Wagh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sonam Wagh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/\"},\"author\":{\"name\":\"Sonam Wagh\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"headline\":\"Easy steps to create 301 Redirect\",\"datePublished\":\"2019-05-28T06:10:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/\"},\"wordCount\":262,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png\",\"keywords\":[\"301 redirects\"],\"articleSection\":[\"Web Hosting FAQ\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/\",\"name\":\"Easy steps to create 301 Redirect - Web Hosting FAQs by MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png\",\"datePublished\":\"2019-05-28T06:10:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"description\":\"301 redirect allows you to direct your users from one URL to another. Learn easy steps to create 301 redirects in this article.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png\",\"width\":800,\"height\":445,\"caption\":\"301 redirect\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Easy steps to create 301 Redirect\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\",\"name\":\"Sonam Wagh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"caption\":\"Sonam Wagh\"},\"description\":\"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Easy steps to create 301 Redirect - Web Hosting FAQs by MilesWeb","description":"301 redirect allows you to direct your users from one URL to another. Learn easy steps to create 301 redirects in this article.","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.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/","og_locale":"en_US","og_type":"article","og_title":"Easy steps to create 301 Redirect - Web Hosting FAQs by MilesWeb","og_description":"301 redirect allows you to direct your users from one URL to another. Learn easy steps to create 301 redirects in this article.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-05-28T06:10:56+00:00","og_image":[{"width":800,"height":445,"url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png","type":"image\/png"}],"author":"Sonam Wagh","twitter_misc":{"Written by":"Sonam Wagh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/"},"author":{"name":"Sonam Wagh","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"headline":"Easy steps to create 301 Redirect","datePublished":"2019-05-28T06:10:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/"},"wordCount":262,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png","keywords":["301 redirects"],"articleSection":["Web Hosting FAQ"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/","name":"Easy steps to create 301 Redirect - Web Hosting FAQs by MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png","datePublished":"2019-05-28T06:10:56+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"description":"301 redirect allows you to direct your users from one URL to another. Learn easy steps to create 301 redirects in this article.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#primaryimage","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/05\/301-direct-min.png","width":800,"height":445,"caption":"301 redirect"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/easy-steps-to-create-301-redirect\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Easy steps to create 301 Redirect"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4","name":"Sonam Wagh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","caption":"Sonam Wagh"},"description":"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=7200"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7200\/revisions"}],"predecessor-version":[{"id":7204,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7200\/revisions\/7204"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media\/7202"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=7200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=7200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=7200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}