{"id":80,"date":"2018-12-14T07:20:07","date_gmt":"2018-12-14T07:20:07","guid":{"rendered":"https:\/\/www.peppypage.com\/blog\/?p=80"},"modified":"2018-12-30T06:24:55","modified_gmt":"2018-12-30T06:24:55","slug":"redirect-to-other-page-or-domain-without-changing-url","status":"publish","type":"post","link":"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/","title":{"rendered":"Redirect to other page or domain without changing url"},"content":{"rendered":"\n<p>When you are about to hide some sensitive information containing in url from user. It will become difficult particularly when redirecting to other page or external domain with url query parameters. But using .htaccess file it is easier and takes just few minutes.<\/p>\n\n\n\n<h2>Redirect to other page or domain using .htaccess file<\/h2>\n\n\n\n<p>If you are using linux or windows os with apache server it will be very easy to hide url while making proper page or url redirection. Open your .htaccess file from your domain root and add the following snippet.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RewriteEngine On #do not add this line if its already present in your htaccess file\nRewriteCond %{REQUEST_URI} ^\/your-page\nRewriteRule ^(.*)$ https:\/\/otherdomain.tld\/new-page$ [P]<\/code><\/pre>\n\n\n\n<p>If you want to redirect a domain to other domain or page<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RewriteEngine On #do not add this line if its already present in your htaccess file\nRewriteCond %{HTTP_HOST} ^yourdomain.com\nRewriteRule ^(.*)$ https:\/\/otherdomain.tld\/new-page$ [P]<\/code><\/pre>\n\n\n\n<p>NOTE:<\/p>\n\n\n\n<p>Most web hosts do not allow you to use proxy redirection, if not enabled mod proxy you will get 500 internal error<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you are about to hide some sensitive information containing in url from user. It will become difficult particularly when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":83,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Redirect to other page or domain without changing url - Domain, Web Hosting and Cloud Hosting Trends<\/title>\n<meta name=\"description\" content=\"Redirect to other page or domain using .htaccess while hiding the url or page path to user. Learn to hide sensitibe information from user.\" \/>\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.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redirect to other page or domain without changing url - Domain, Web Hosting and Cloud Hosting Trends\" \/>\n<meta property=\"og:description\" content=\"Redirect to other page or domain using .htaccess while hiding the url or page path to user. Learn to hide sensitibe information from user.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/\" \/>\n<meta property=\"og:site_name\" content=\"Domain, Web Hosting and Cloud Hosting Trends\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-14T07:20:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-12-30T06:24:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.peppypage.com\/content\/wp-content\/uploads\/2018\/12\/e-commerce-1606962.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1365\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"bharathsde\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"bharathsde\" \/>\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\":\"WebSite\",\"@id\":\"https:\/\/www.peppypage.com\/content\/#website\",\"url\":\"https:\/\/www.peppypage.com\/content\/\",\"name\":\"Domain, Web Hosting and Cloud Hosting Trends\",\"description\":\"Learn how to secure your app and website\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.peppypage.com\/content\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/\",\"url\":\"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/\",\"name\":\"Redirect to other page or domain without changing url - Domain, Web Hosting and Cloud Hosting Trends\",\"isPartOf\":{\"@id\":\"https:\/\/www.peppypage.com\/content\/#website\"},\"datePublished\":\"2018-12-14T07:20:07+00:00\",\"dateModified\":\"2018-12-30T06:24:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/33a613ea798a2b94d8ec79faa0f76403\"},\"description\":\"Redirect to other page or domain using .htaccess while hiding the url or page path to user. Learn to hide sensitibe information from user.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.peppypage.com\/content\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Redirect to other page or domain without changing url\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/33a613ea798a2b94d8ec79faa0f76403\",\"name\":\"bharathsde\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6d56691d057a81ea8a03b12c51675abb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6d56691d057a81ea8a03b12c51675abb?s=96&d=mm&r=g\",\"caption\":\"bharathsde\"},\"url\":\"https:\/\/www.peppypage.com\/content\/author\/bharathsde\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Redirect to other page or domain without changing url - Domain, Web Hosting and Cloud Hosting Trends","description":"Redirect to other page or domain using .htaccess while hiding the url or page path to user. Learn to hide sensitibe information from user.","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.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/","og_locale":"en_US","og_type":"article","og_title":"Redirect to other page or domain without changing url - Domain, Web Hosting and Cloud Hosting Trends","og_description":"Redirect to other page or domain using .htaccess while hiding the url or page path to user. Learn to hide sensitibe information from user.","og_url":"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/","og_site_name":"Domain, Web Hosting and Cloud Hosting Trends","article_published_time":"2018-12-14T07:20:07+00:00","article_modified_time":"2018-12-30T06:24:55+00:00","og_image":[{"width":1920,"height":1365,"url":"https:\/\/www.peppypage.com\/content\/wp-content\/uploads\/2018\/12\/e-commerce-1606962.png","type":"image\/png"}],"author":"bharathsde","twitter_card":"summary_large_image","twitter_misc":{"Written by":"bharathsde","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.peppypage.com\/content\/#website","url":"https:\/\/www.peppypage.com\/content\/","name":"Domain, Web Hosting and Cloud Hosting Trends","description":"Learn how to secure your app and website","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.peppypage.com\/content\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/","url":"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/","name":"Redirect to other page or domain without changing url - Domain, Web Hosting and Cloud Hosting Trends","isPartOf":{"@id":"https:\/\/www.peppypage.com\/content\/#website"},"datePublished":"2018-12-14T07:20:07+00:00","dateModified":"2018-12-30T06:24:55+00:00","author":{"@id":"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/33a613ea798a2b94d8ec79faa0f76403"},"description":"Redirect to other page or domain using .htaccess while hiding the url or page path to user. Learn to hide sensitibe information from user.","breadcrumb":{"@id":"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.peppypage.com\/content\/redirect-to-other-page-or-domain-without-changing-url\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.peppypage.com\/content\/"},{"@type":"ListItem","position":2,"name":"Redirect to other page or domain without changing url"}]},{"@type":"Person","@id":"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/33a613ea798a2b94d8ec79faa0f76403","name":"bharathsde","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.peppypage.com\/content\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6d56691d057a81ea8a03b12c51675abb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d56691d057a81ea8a03b12c51675abb?s=96&d=mm&r=g","caption":"bharathsde"},"url":"https:\/\/www.peppypage.com\/content\/author\/bharathsde\/"}]}},"_links":{"self":[{"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/posts\/80"}],"collection":[{"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":3,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/posts\/80\/revisions\/107"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/media\/83"}],"wp:attachment":[{"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.peppypage.com\/content\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}