{"id":239,"date":"2017-07-11T22:27:58","date_gmt":"2017-07-11T22:27:58","guid":{"rendered":"http:\/\/orissawebhosting.in\/blog\/?p=239"},"modified":"2019-07-19T04:18:17","modified_gmt":"2019-07-19T04:18:17","slug":"how-to-redirect-a-url-to-another-url-via-wordpress","status":"publish","type":"post","link":"https:\/\/orissawebhosting.in\/blog\/how-to-redirect-a-url-to-another-url-via-wordpress\/","title":{"rendered":"How to Redirect a URL to Another URL Via WordPress and .htaccess"},"content":{"rendered":"<p><strong>How to Redirect a URL to Another URL Via WordPress.<\/strong><\/p>\n<p>Redirect is a way for your website to send a quick message to your reader\u2019s browser and tell them that the page they want to visit has been moved, so their browser can automatically point them to the new page of your choice.<\/p>\n<p>Step 1 &#8211; To set the redirection in wordpress, initially install the plugin called as <a href=\"https:\/\/wordpress.org\/plugins\/redirection\/\">Redirection<\/a>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-244 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re1-1024x464.png\" alt=\"\" width=\"640\" height=\"290\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re1-1024x464.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re1-300x136.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re1-768x348.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re1.png 1338w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Step 2 &#8211; Once installed and activated, choose\u00a0<strong>Tools &gt;&gt; Redirection<\/strong>\u00a0to setup your redirects. \u00a0In source URL &gt;&gt; enter the URL which you to redirect and In Target URL &gt;&gt; set the destination URL .<\/p>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-245 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re2-1024x498.png\" alt=\"\" width=\"640\" height=\"311\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re2-1024x498.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re2-300x146.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re2-768x374.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re2.png 1227w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><strong>Step 3<\/strong> &#8211; For example, once you have set the redirection from\u00a0http:\/\/mydomainname.in\/wp1\/about\/ to\u00a0https:\/\/twitter.com\/. \u00a0then you can enter the URL or click path it will automatically redirect to destination point.<\/p>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-247 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re3-1024x523.png\" alt=\"\" width=\"640\" height=\"327\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re3-1024x523.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re3-300x153.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re3-768x392.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re3.png 1356w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><strong>How to\u00a0Redirect a URL to Another URL via .htaccess in two steps.<\/strong><\/p>\n<p>Step 1 &#8211; Create a .htaccess file in your cPanel under the directory which you want to redirect.<\/p>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-250 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re4-1024x471.png\" alt=\"\" width=\"640\" height=\"294\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re4-1024x471.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re4-300x138.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re4-768x353.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re4.png 1345w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Step 2 &#8211; Once created,\u00a0You can add the code below preferably at the end of your .htaccess file and save changes.<\/p>\n<pre> Redirect \/mark\/index.html http:\/\/gmail.com\/<\/pre>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-251 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re5-1024x237.png\" alt=\"\" width=\"640\" height=\"148\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re5-1024x237.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re5-300x70.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re5-768x178.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/re5.png 1359w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Step 3 &#8211; once done, when you the index.html it will redirect to your gmail.com account, based on your need you can set the redirection.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Redirect a URL to Another URL Via WordPress. Redirect is a way for your website to send a quick message to your reader\u2019s browser and tell them that the page they want to visit has been moved, so their browser can automatically point them to the new page of your choice. Step 1 &#8211; To set the redirection in wordpress, initially install the plugin called as Redirection\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/239"}],"collection":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":8,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":1105,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions\/1105"}],"wp:attachment":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}