# How do you redirect a domain to a different landing page on a website?

**URL:** <https://boards.straightdope.com/t/how-do-you-redirect-a-domain-to-a-different-landing-page-on-a-website/758076>\
**Category:** Factual Questions\
**Created:** [June 22, 2016, 6:54pm UTC](https://boards.straightdope.com/t/how-do-you-redirect-a-domain-to-a-different-landing-page-on-a-website/758076 "2016-06-22T18:54:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Whack-a-Mole](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/whack-a-mole/32/141_2.png) [@Whack-a-Mole](https://boards.straightdope.com/u/Whack-a-Mole)\
**Post date:** [June 22, 2016, 6:54pm UTC](https://boards.straightdope.com/t/how-do-you-redirect-a-domain-to-a-different-landing-page-on-a-website/758076/1 "2016-06-22T18:54:59Z")

</div>

Hopefully this will make sense.

Say I have a website called [www.test.com](http://www.test.com) (it probably exists but I am making all the URLs up for this post).

I have a second website called [www.oldsite.com](http://www.oldsite.com).

I want to have the website [www.oldsite.com](http://www.oldsite.com) to point to a page on [www.test.com](http://www.test.com) so if you go to [www.othersite.com](http://www.othersite.com) in your browser you get redirected to [www.test.com/newsite](http://www.test.com/newsite).

I know how to get the domain pointed to the right server (update DNS). I also am aware you can redirect people who hit [www.test.com](http://www.test.com) to [www.test.com/newsite](http://www.test.com/newsite).

What I want though is for people who type in [www.test.com](http://www.test.com) to land at [www.test.com](http://www.test.com) and people who type [www.oldsite.com](http://www.oldsite.com) to land at [www.test.com/newsite](http://www.test.com/newsite).

How do I do this?

---

<div class="post-metadata">

**Author:** ![si\_blakely](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@si\_blakely](https://boards.straightdope.com/u/si_blakely)\
**Post date:** [June 22, 2016, 7:17pm UTC](https://boards.straightdope.com/t/how-do-you-redirect-a-domain-to-a-different-landing-page-on-a-website/758076/2 "2016-06-22T19:17:15Z")

</div>

You configure your website at [www.oldsite.com](http://www.oldsite.com) to issue a HTTP 302 redirect.

Sent from my SM-G900I using Tapatalk

---

<div class="post-metadata">

**Author:** ![Whack-a-Mole](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/whack-a-mole/32/141_2.png) [@Whack-a-Mole](https://boards.straightdope.com/u/Whack-a-Mole)\
**Post date:** [June 22, 2016, 7:33pm UTC](https://boards.straightdope.com/t/how-do-you-redirect-a-domain-to-a-different-landing-page-on-a-website/758076/3 "2016-06-22T19:33:06Z")

</div>

> [@si\_blakely](#):
>
> You configure your website at [www.oldsite.com](http://www.oldsite.com) to issue a HTTP 302 redirect.
> 
> Sent from my SM-G900I using Tapatalk

Thanks! 😃

That did the trick except I did a 301 redirect because it is permanent and seems that it is search engine friendly.

---

<div class="post-metadata">

**Author:** ![si\_blakely](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@si\_blakely](https://boards.straightdope.com/u/si_blakely)\
**Post date:** [June 22, 2016, 7:48pm UTC](https://boards.straightdope.com/t/how-do-you-redirect-a-domain-to-a-different-landing-page-on-a-website/758076/4 "2016-06-22T19:48:30Z")

</div>

Good choice, glad I could help.

[Network support engineer]Are you happy for me to close this ticket?[/Network support engineer]

Sent from my SM-G900I using Tapatalk
