Welcome to WebmasterWorld Guest from 3.227.233.78

Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

301 redirect versus setting up an alias

301 redirect

     
6:46 pm on Mar 3, 2006 (gmt 0)

New User

10+ Year Member

joined:Dec 9, 2004
posts:19
votes: 0


I have directed a number of domains to the main domain. the hosting company set them up like this

I DID NOT mask the domains. actually the opposite, I aliased them. so you type in the redirect's address and apache sees it as *******.com

So when I type in the domain name, it shows that URL in the address bar instead of the URL it is pointed towards.

Will this be viewed as masking or duplicate content?

Please advise as we have page one on all engines and don't want to lose rankings.

8:23 pm on Mar 3, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


You have duplicate content.

You have to use a 301 redirect on both the non-www and the www versions of all of the sites, in order to redirect all of them to the single www.domain.com entry that you want to be listed.

The redirect should take any request for any page on any domain, and redirect it to the same page on the www.domain.com site that you want to be indexed. The redirect must be a 301 redirect. Use WebBug to check it.

There is no other option.

1:07 am on Mar 4, 2006 (gmt 0)

New User

10+ Year Member

joined:May 28, 2005
posts:11
votes: 0


I can't seem to get this straight in my mind either. I have several (15) domain names (variations of my original, including, net, info, org) and want anyone who accidentally types in the wrong URL to be directed to the real URL of my business.

I could do a 301 redirect from each domain to my main domain, but I read something here: [mcanerin.com...] that talks about aliasing all of my extra domains to one other "catch-all" domain, and then 301 redirecting the catch-all domain to my real domain. Is this better than doing individual 301 redirects of all 15 domains to my main domain? I suppose the theory here is that it acts a a buffer from seeing a bunch of URL's being redirected as opposed to just one.

Is any of this considered spamming by Google? Or will it hurt my SERP's?

Thanks for you knowledge and help.

phochief

1:16 am on Mar 4, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


You need one server, and one hosting plan.

Point all the domain names at that one server.

On that one server, edit the .htaccess file such that if anyone arrives there asking for the "wrong" domain name, they are fed a 301 redirect along with the correct domain name to ask for.

Moments later they are back, knocking on the door, and as they are now asking for the correct domain name they are let in and the page content is served.

.

Your other plan still has duplication of URLs, and TWO redirects chained one after the other. Avoid doing that.

1:59 am on Mar 4, 2006 (gmt 0)

New User

10+ Year Member

joined:May 28, 2005
posts:11
votes: 0


I guess I don't understand what the difference is. When I said "alias" the extra domains, isn't that the same thing as "pointing" them to the separate host/server? Seems like both of our methods are pointing to a separate server/host account, and then doing a 301 redirect from that account to my main business URL.

If this isn't correct, can you be a bit more specific?

Thanks for your help.

--------------
You need one server, and one hosting plan.
Point all the domain names at that one server.

On that one server, edit the .htaccess file such that if anyone arrives there asking for the "wrong" domain name, they are fed a 301 redirect along with the correct domain name to ask for.

Moments later they are back, knocking on the door, and as they are now asking for the correct domain name they are let in and the page content is served.

.

Your other plan still has duplication of URLs, and TWO redirects chained one after the other. Avoid doing that.

3:06 am on Mar 4, 2006 (gmt 0)

New User

10+ Year Member

joined:May 28, 2005
posts:11
votes: 0


....so I guess I'm still not clear on this, and still asking:

1) Is it ok, or better, to 301 redirect several (15) domain names to my main business domain?

2) Is it ok, or better, to have one hosting account with 15 alias domains pointing at it, and then 301 that hosting account toward my main business domain on a different server?

Thanks again,
Phochief

12:24 pm on Mar 4, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


Use ONE server in TOTAL. Have ONE hosting plan in TOTAL.

Point all domains that you own to that ONE server.

On that ONE server, set up ONE .htaccess file that contains all of the redirect information such that all of the "wrong" domains (both www and non-www versions ) are 301 redirected to the one correct www.domain.com that you want to be indexed and listed.

The ONE .htaccess file will look something like this:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^maindomain.com [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^other.net [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.other.net [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^whatever.co.uk [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.whatever.co.uk [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^mysite.org [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.mysite.org [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^otherone.us [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.otherone.us [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^mirrorsite.com [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.mirrorsite.com [NC]
RewriteRule ^(.*)$
http://www.maindomain.com/$1 [L,R=301]

That is it!

You are trying to make this more complicated than it needs to be.

5:03 pm on Mar 4, 2006 (gmt 0)

New User

10+ Year Member

joined:May 28, 2005
posts:11
votes: 0


> You are trying to make this more complicated than it needs to be.
-------------------------

Yep, I have a habit of doing that. :-)

I'm still learning.

....so, when you say one server, are you talking about the server where my extra domains are being redireted from? All of my extra domains are registered at GoDaddy and I have one host account there which I am using to 301 redirect the extra domains to my main account, which is hosted by a different server at my Yahoo store. So, I actually have two servers, and two hosts. My main domain is registered with Yahoo.

If you're saying there's a way to point all of my extra domains at my Yahoo store's server, then that's something I just don't know how to do.

On the GoDaddy virtual server (using Linux), since I can't use an .htaccess file, the only way I can do a 301 redirect is using php code :

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: [mymaindomain.com...]
exit();
?>

Sorry for the webmaster 101 lesson.

Phochief

8:25 pm on Mar 4, 2006 (gmt 0)

New User

10+ Year Member

joined:May 28, 2005
posts:11
votes: 0


Ok....I just read some info about Cnames and am trying that. Seems like (if I understand this correctly) I can setup the CNames for each of my extra domains to point to the Yahoo server where I have my main domain name. And then tell Yahoo to do a 301 redirect for each of those domain names to my main domain name.

Does this sound right? Changing the Cname would make the domain look like it's located on the same server? Is that the same thing as "pointing"?

I'm getting a headache.

9:43 pm on Mar 4, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 2, 2002
posts:87
votes: 0


ummm....again you're making to complicated.

dont use cnames period. unless of course you like things to be complicated (which is what im thinking now). I dont think anyone on here would recommend you to use Cnmaes, it's just a huge mistake.

Server1 host account1

domain1
domain2
domain3
domain4
domain5
domain6

redirect to

Server2 host account 2

do you have access to .htaccess at all?

10:04 pm on Mar 4, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


You do NOT need two accounts or servers.

If you can redirect maindomain.com to www.maindomain.com using just one server and one hosting account then you can also redirect both someotherdomain.com and www.someotherdomain.com to www.maindomain.com on that server by hosting them all in the same physical server space, and having the redirect instructions in that same physical space too.

11:43 pm on Mar 4, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 2, 2002
posts:87
votes: 0


eeeks...ok re-read the original post. Sorry..thought you were using 2 different accounts..G1 is correct :)
1:11 am on Mar 5, 2006 (gmt 0)

New User

10+ Year Member

joined:May 28, 2005
posts:11
votes: 0


Server1 host account1

domain1
domain2
domain3
domain4
domain5
domain6

redirect to

Server2 host account 2

------------
No, no access to .htaccess at godaddy. The php 301 redirect seemed to work very well, and returned a code: "301" when I entered any of my extra domains into the header checking tool at [seoconsultants.com...]

So the example you are showing above seems to go along with what I was originally doing, i.e., at my domain registrar's domain control panel, setting all of my extra domains to "alias" toward a single server/hosting account there (all using the same NS) and then FTPing the index.php 301 redirect file to that first server/hosting account, which sends any of those extra domains to my other server/hosting account (my Yahoo Store) main page. Thus as you have above, Server 1 being redirected to Server 2. Right? I mean it works, I just want to make sure G* is going to be happy.

And just to make sure G* doesn't index my Server 1 host, I placed a robot.txt file in the root directory telling robots to go away:
User-agent: *
Disallow: /

Am I getting it yet? :-)

1:24 am on Mar 5, 2006 (gmt 0)

New User

10+ Year Member

joined:May 28, 2005
posts:11
votes: 0


You do NOT need two accounts or servers.
If you can redirect maindomain.com to www.maindomain.com using just one server and one hosting account then you can also redirect both someotherdomain.com and www.someotherdomain.com to www.maindomain.com on that server by hosting them all in the same physical server space, and having the redirect instructions in that same physical space too.
-------------
Ok...I understand what you're saying, but I don't know how to do it. This is all very new to me so I'm trying.

How am I supposed to redirect someotherdomain.net from one registrar's control panel toward my Yahoo store's server? Here's what Yahoo allows in the domain panel of my store: I can add any number of other domains that I own to point at my Yahoo server. When I added one (as a test) today, Yahoo then said I should do the following to my someotherdomain.net to make it "fully operational":

Zone File
www.someotherdomain.net IN CNAME yhst-73893876487883.site.yahoo.net.

Isn't this done by changing a Cname record in my someotherdomain.net DNS settings?

If I'm making this too complicated, can someone be more specific about what exactly I'm supposed to be doing?

Thanks guys.