Unstoppable Domains โ€” Expired Auctions

question Redirecting different domains to one website

Spaceship Spaceship
Watch

freeflow

Established Member
Impact
13
Hi everyone! Maybe you can help me with the following questions.

I have a domain with a website. The DNS has been change to my hosting provider.
What I would like to is to redirect other related domains of mine to the website.

How do I make sure the the original domain stays the default in the search engines
and not any of the other domains?

Does it make a difference if I just redirect the other domains or if I change their DNS?

Is there anything else I need to know?

Thanks for your help.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Set up a 301(Permanent) redirect from each of the other domains to the primary domain (with the web site.)
 
3
•••
Thanks!
 
0
•••
you can also do "url redirect/frame forward" from registrar, to any page of your website or to any newly created page.

ranking can be achieved for some distinct pages from those redirected domain names.

ie:

i own urlpick.com
i have forwarded "greenfriendly.com to urlpick.com/greenfriendly.html

also have other domains which are forwarded to their own individual pages, where ranking was achieved for content and keywords.

imo....
 
2
•••
Let's get technical! :xf.cool:

I use a similar method as discussed, however if you are hosting with an Apache server you can edit your .htaccess file to 301 redirect your domain names to a single page hosted on your main domain that handles the display of content, and has a clean formatted URL.

If you venture to use a similar setup you will find that it's a time saver, as you would never have to go in and hard code custom pages for each domain.

So it will look like:
ForSaleDN.com -> MyHomepage.com/domain/com/ForSaleDN/
*you can format it any way you like, this was just my choice.

It will take two specific .htaccess processes

#1 - Point the domain to your homepage
RewriteCond %{HTTP_HOST} =FORSALEDN.COM [OR,NC]
RewriteCond %{HTTP_HOST} =www.FORSALEDN.COM [NC]
RewriteRule ^(.*)$ http://www.myhomepage.com/domain/com/forsaledn/ [L,R=301]

* this will handle both the www version and non www version when users enter it in.

#2 - Format the URL so you can use a single file to display content, and the user will not know the difference.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^domain/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ /file/Selling.php?dn=$2.$1 [NC,L]

the "([A-Za-z0-9-]+)" grabs the data between the '/' characters and put it into the $1 and $2 variables. So $2.$1 is actually passing forsaledn.com into the file :

#3 - Inside the php file (Selling.php) you handle your input.

<?php
$adomain = $_GET["dn"];
$analyticscode = '';
echo $analyticscode . 'Welcome to " . $adomain . " contact <img src='emailaddress.jpg'>"
?>

Once in php you can output the data however you like, format it with css, or tie it into a MySQL database, launch analytics, etc...

PM me if anyone want's a live demo.

Cheers!
 
Last edited:
2
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back