{"id":5366,"date":"2017-01-16T15:29:20","date_gmt":"2017-01-16T12:29:20","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=5366"},"modified":"2023-01-19T13:59:53","modified_gmt":"2023-01-19T10:59:53","slug":"how-to-make-a-301-redirect","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/","title":{"rendered":"How to make a 301 redirect"},"content":{"rendered":"<h2>cPanel<\/h2>\n<ol>\n<li>Log into cPanel.<\/li>\n<li>Find a Domains section and click on Redirects.<\/li>\n<li>Select Permanent (301) as a type of redirect.<\/li>\n<li>In the next field, enter the domain you want to redirect. Or choose **All Public Domains**, if you want to redirect all domains on the server.<\/li>\n<li>In the field Redirects to, enter the domain you want to redirect yours to.<\/li>\n<li>Select the corresponding parameters for the redirect (most common choices are Redirect with or without WWW and Wild Card Redirect).<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/301-EN-01.png\" rel=\"lightbox\" alt=\"301-EN-01\" width=\"710\" height=\"467\" class=\"aligncenter size-full wp-image-5371\" title=\"How to make a 301 redirect - Image 1\"><\/p>\n<li>Click Add.<\/li>\n<\/ol>\n<h2>ISPmanager<\/h2>\n<ol>\n<li>Log into ISPmanager.<\/li>\n<li>In WWW section, select WWW-domains. It will open a window with a domain list.<\/li>\n<li>Select a domain you want to redirect from.<\/li>\n<li>Click on the Redirects button. You will be transferred to the page with a list of redirects.<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/301-EN-02.png\" alt=\"301-EN-02\" rel=\"lightbox\" width=\"1125\" height=\"729\" class=\"aligncenter size-full wp-image-5373\" title=\"How to make a 301 redirect - Image 2\"><\/p>\n<li>Click on Add, to add a redirect.<\/li>\n<li>In the Path field, enter the address you want to redirect from.<\/li>\n<li>In the Code field, select \u00ab301 &#8211; Moved Permanently\u00bb.<\/li>\n<li>In the URL field, enter the address of the page you want to redirect to.<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/301-EN-03.png\" rel=\"lightbox\" alt=\"301-EN-03\" width=\"917\" height=\"722\" class=\"aligncenter size-full wp-image-5369\" title=\"How to make a 301 redirect - Image 3\"><\/p>\n<li>Click \u041e\u041a.<\/li>\n<\/ol>\n<p>FTP (editing .htaccess manually)<\/p>\n<ol>\n<li>Connect to your website\u2019s FTP server.<\/li>\n<li>Create an .htaccess file in the root directory (if it is already there \u2014 open it).<\/li>\n<li>Enter the following lines into it, replacing http:\/\/example.com\/ with a domain you want to redirect from, and http:\/\/example2.com\/ with a domain you want to redirect to.<\/li>\n<pre>RewriteEngine On\nRewriteBase \/\nRewriteCond %{HTTP_HOST} ^http:\/\/example.com\/ [NC]\nRewriteRule ^(.*) http:\/\/http:\/\/example2.com\/\/$1 [L,R=301]<\/pre>\n<li>Save the file<\/li>\n<\/ol>\n<p>Now, you will have to fix robots.txt, because Yandex Web Search, which is very popular in Russia, has a tendency to misunderstand the domain redirect and may announce your new website a duplicate.<\/p>\n<ol>\n<li>Open the robots.txt (if there\u2019s none \u2014 create it in the root directory).<\/li>\n<li>Enter the following lines into it:<\/li>\n<pre>User-agent: Yandex\nDisallow:\nHost: http:\/\/example2.com\/\/<\/pre>\n<li>Save the file.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>cPanel Log into cPanel. Find a Domains section and click on Redirects. Select Permanent (301) as a type of redirect. In the next field, enter the domain you want to redirect. Or choose **All Public Domains**, if you want to redirect all domains on the server. In the field Redirects to, enter the domain you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[],"class_list":["post-5366","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to make a 301 redirect - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"A step by step tutorial How to make a 301 redirect \u2714 cPanel \u2714 ISPmanager \u2714 FTP (editing .htaccess manually) - Unihost.FAQ\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to make a 301 redirect - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"A step by step tutorial How to make a 301 redirect \u2714 cPanel \u2714 ISPmanager \u2714 FTP (editing .htaccess manually) - Unihost.FAQ\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-16T12:29:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-19T10:59:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/301-EN-01.png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"How to make a 301 redirect\",\"datePublished\":\"2017-01-16T12:29:20+00:00\",\"dateModified\":\"2023-01-19T10:59:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/\"},\"wordCount\":289,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/301-EN-01.png\",\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/\",\"url\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/\",\"name\":\"How to make a 301 redirect - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/301-EN-01.png\",\"datePublished\":\"2017-01-16T12:29:20+00:00\",\"dateModified\":\"2023-01-19T10:59:53+00:00\",\"description\":\"A step by step tutorial How to make a 301 redirect \u2714 cPanel \u2714 ISPmanager \u2714 FTP (editing .htaccess manually) - Unihost.FAQ\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#primaryimage\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?.\/301-EN-01.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?.\/301-EN-01.png\",\"width\":710,\"height\":467},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to make a 301 redirect\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to make a 301 redirect - Unihost.FAQ","description":"A step by step tutorial How to make a 301 redirect \u2714 cPanel \u2714 ISPmanager \u2714 FTP (editing .htaccess manually) - Unihost.FAQ","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:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/","og_locale":"en_US","og_type":"article","og_title":"How to make a 301 redirect - Unihost.FAQ","og_description":"A step by step tutorial How to make a 301 redirect \u2714 cPanel \u2714 ISPmanager \u2714 FTP (editing .htaccess manually) - Unihost.FAQ","og_url":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2017-01-16T12:29:20+00:00","article_modified_time":"2023-01-19T10:59:53+00:00","og_image":[{"url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/301-EN-01.png","type":"","width":"","height":""}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"How to make a 301 redirect","datePublished":"2017-01-16T12:29:20+00:00","dateModified":"2023-01-19T10:59:53+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/"},"wordCount":289,"commentCount":0,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/301-EN-01.png","articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/","url":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/","name":"How to make a 301 redirect - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/301-EN-01.png","datePublished":"2017-01-16T12:29:20+00:00","dateModified":"2023-01-19T10:59:53+00:00","description":"A step by step tutorial How to make a 301 redirect \u2714 cPanel \u2714 ISPmanager \u2714 FTP (editing .htaccess manually) - Unihost.FAQ","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#primaryimage","url":"https:\/\/unihost.com\/help\/minio.php?.\/301-EN-01.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?.\/301-EN-01.png","width":710,"height":467},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/how-to-make-a-301-redirect\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"How to make a 301 redirect"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/5366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=5366"}],"version-history":[{"count":4,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/5366\/revisions"}],"predecessor-version":[{"id":10256,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/5366\/revisions\/10256"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=5366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=5366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=5366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}