Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I redirect a domain to a specific "landing page"?

Tags:

redirect

My client has several parked domains. She wants those domains to point to specific pages in her main site. For example:

Let's pretend she has a page on her main site about bedroom redecorating. That page is located at www.mainsite.com/bedrooms/

And let's say she has a parked domain called www.999bedrooms.com/

She wants to redirect that domain to www.mainsite.com/bedrooms/

What's the best way to do this without being penalized by the search engines?

Also, keep in mind that www.mainsite.com/bedrooms is actually a WordPress page, so it's not an actual file on the server, per se.

Thanks!

like image 304
orbit82 Avatar asked Jul 13 '10 15:07

orbit82


People also ask

Can you redirect a domain to a specific page?

Type: Permanent. Choose the domain to redirect from the pulldown menu. If you only wish to redirect a specific page, enter it into the box to the right of the slash (example: mysite.com/page1.html) In Redirect to, enter the destination address.

Can I redirect a domain to a specific URL?

What is URL redirect? URL redirect (URL forwarding) allows you to forward your domain visitors to any URL of your choice (to a new domain or a different website). You can set 301 (Permanent), 302 (Unmasked), and Masked (URL Frame) redirects for the domain names pointed to BasicDNS, PremiumDNS or FreeDNS.


1 Answers

There are (at least) two ways to do this. One way requires access to some sort of configuration on the server, and the other doesn't. I don't know if you're using the Apache web server, but if you are, you would add mod_alias to your configuration and restart Apache:

a2enmod alias
apache2ctl graceful

Then add this to the VirtualHost section for 999bedrooms.com:

Redirect permanent / http://www.mainsite.com/bedrooms

Then you should be done.

The other way is in an HTML file that you put at http://999bedrooms.com/index.html, put a line like this within the HEAD section:

<meta http-equiv="refresh" content="1; url=http://www.mainsite.com/bedrooms">

This is one of those "Please wait while we redirect you to our main page" sorts of redirections that you see sometimes. Not as nice as the server-based ones, but easier to do.

Hope this helps!

like image 167
rescdsk Avatar answered Oct 11 '22 08:10

rescdsk