{"id":33737,"date":"2016-09-19T10:39:52","date_gmt":"2016-09-19T10:39:52","guid":{"rendered":"https:\/\/hostduplex.com\/kb\/?p=185"},"modified":"2016-09-19T10:39:52","modified_gmt":"2016-09-19T10:39:52","slug":"how-to-redirect-a-page-to-another-page-or-website-using-htaccess","status":"publish","type":"post","link":"https:\/\/www.hostduplex.com\/kb\/how-to-redirect-a-page-to-another-page-or-website-using-htaccess\/","title":{"rendered":"How to redirect a page to another page or website using .htaccess?"},"content":{"rendered":"<p><span style=\"font-size: medium;\">If a page on your website no longer exists and you want to redirect it to your new page or site, then you can use the .htaccess file for redirection without waiting.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: medium;\">Redirect from a page\/directory to another domain or the main domain:<\/span><\/p>\n<p><strong><span style=\"font-size: medium;\">Redirect from a specific page to a domain:<\/span><\/strong><br \/>\n<span style=\"font-size: medium; background-color: #c0c0c0;\">RewriteEngine on<\/span><br \/>\n<span style=\"font-size: medium; background-color: #c0c0c0;\">Redirect 301 \/mypage.html https:\/\/example.com<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: medium;\"><strong>Redirect from a page to another page<\/strong>:<\/span><br \/>\n<span style=\"font-size: medium; background-color: #c0c0c0;\">Redirect from a page\/directory to another page<\/span><br \/>\n<span style=\"font-size: medium; background-color: #c0c0c0;\">Redirect 301 \/oldpage.html \/newpage.html<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: medium;\">Now, whenever you open the URL example.com\/<strong>oldpage.html<\/strong>, it will automatically redirect you to example.com\/<strong>newpage.html<\/strong>. <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If a page on your website no longer exists and you want to redirect it to your new page or site, then you can use the .htaccess file for redirection without waiting. &nbsp; Redirect from a page\/directory to another domain or the main domain: Redirect from a specific page to&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[78],"tags":[],"class_list":["post-33737","post","type-post","status-publish","format-standard","hentry","category-others-cpanel"],"_links":{"self":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/33737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/comments?post=33737"}],"version-history":[{"count":0,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/33737\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/media?parent=33737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/categories?post=33737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/tags?post=33737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}