Forum Moderators: phranque

Message Too Old, No Replies

Forward www.domain.com to domain.com

Can this be done?

         

MatthewHSE

7:47 pm on Dec 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For various reasons, I'm using simply mydomain.com on my site, instead of www.mydomain.com. Both work, but I prefer just mydomain.com. A lot of visitors are using the w's to get to my site. Can I set it up so that www.mydomain.com gets forwarded to mydomain.com? And, what are some reasons for or against such a procedure?

Farix

8:29 pm on Dec 17, 2003 (gmt 0)

10+ Year Member



If both gets you to the same web server, why are you worried about it? Personally, this is one of those cases that you should leave well enough alone.

bill

7:02 am on Dec 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month


I do this on several sites. If you can use [b].htaccess[/b], then something like the following should work:

[code]RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L][/code]

My primary reason for this was marketing. I have standardized all catalogs, business cards, and other promotional material to leave off the [b]www[/b]. It makes your URL shorter and easier to communicate.

[1][[b]edited by[/b]: heini at 12:11 pm (utc) on Dec. 25, 2003][/1]
[1][edit reason] delinked, thanks! [/edit][/1]

robert adams

5:11 pm on Dec 18, 2003 (gmt 0)

10+ Year Member



can you get to your site by using the www? if so what is the problem?

most servers are set up for this already. years ago you had to set it up so that it would work without the www, now that is pretty much standard. I doubt if you domain is visible to domain.com without being visible to www.domain.com

luck and joy,
robert

jdMorgan

5:49 pm on Dec 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Branding.

Reinforcing the branding effort bill describes by redirecting from the undesired domain to the preferred domain is a very good reason. This affects both site visitors and search engines. Only by doing the 301 redirect can you control what your URL looks like in the browser address bar and in search results.

If you don't control this aspect of your domain, then the search engines will just pick one variant over the other, sometimes based on incoming links and sometimes seemingly at random.

In certain market segments, branding is a powerful tool; For example, do you check "www.cnn.com" in the morning, or "cnn.com"?

So control it yourself or let others decide, it's up to you... Where *my* livlihood is involved, I prefer to take control. YMMV

Jim

MatthewHSE

7:19 pm on Dec 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey Bill, thanks for the tip. I added that to my .htaccess file and sure enough, www.mydomain.com now forwards to mydomain.com.

I'd like to know, however, if anyone else has noticed if this slows down page requests? Seems like going to www.mydomain.com takes longer now that the redirect is in place than it used to.

<edit>Might just be my imagination; I just checked again and there didn't seem to be so much difference. Input anyone?</edit>

Thanks,

Matthew

bill

1:58 am on Dec 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I can't find it now, but there was a thread in here once that discussed this. I'm pretty sure jdMorgan participated in it...there was a discussion of having a large site and using various redirect methods and their respective impact on the server...maybe someone else remembers?

mcavic

3:22 pm on Dec 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if this slows down page requests

301 redirects are quite fast, and since the only time people should get the redirect is when they first enter your site, it should be fine.

SymbioticDesign

7:13 pm on Dec 24, 2003 (gmt 0)

10+ Year Member


I think that this is possibly a great strategy because most search engines see links to www.domain.com and links to domain.com as seperate links (unless you are submitting the links directly to the search engine, these will be parsed, but the server's cache of these different links will not).

This means that if a user visits your site, likes it and links to it, he/she will mostly likely copy the URL out of the browser. So, this reduces the chance of being listed as both www.domain.com and domain.com, which effectively can split-up a search engine's count on these links.

However, because search engines do not like redirects, this could cancel out any link credibility for the www.domain.com (pre-existing or future links) in a search engine.

And I would probably enforce the reverse conversion (from domain.com to www.domain.com) over the other way around to avoid people who may link to your site out of memory simply because it has become such a standard.

Then again, are .htaccess redirects frowned on as much as vanity domain forwards/redirects (mydomain.com or www.mydomain.com forwards to domain.com)? This, I am unsure of. Afterall, with such an htaccess redirect, doesn't http://www.domain.com/dir/file.html redirect to http://domain.com/dir/file.html?

If the answer is yes, then this is probably is a great strategy because existing links to any insite address won't be broken. But I am still under the impression that htaccess is frowned on by the search engines.

However, if you do this from the outset when you are just starting the website, there should be no worries about existing links and a possible reduction in link popularity.

Of course, I am open to opinions/suggestions/rebuttal. My only concern is how such a strategy might effect link popularity. The upside is that you are increasing brand/URL recognition, which of course, may (and usually should) outwiegh any possible link popularity issues.

-DP

[1][[b]edited by[/b]: heini at 12:08 pm (utc) on Dec. 25, 2003][/1]
[1][edit reason] delinked, thanks! [/edit][/1]

mcavic

11:38 pm on Dec 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Search engines don't frown upon htaccess, because they don't know what that is - all they see is a 301 or 302 redirect.

When an SE sees a 301 redirect, it should drop the old page and index the new one instead. If that's what you mean by not liking redirects, then yes, but since redirects let you eliminate duplicate content, they should be considered good things.

As for vanity domains with redirections, I think they're pretty useless, except for type-in traffic. The SE's will abandon them, and most users will bookmark the url that shows up in the browser.

I'd say that search engines much prefer redirects, rather than duplicate pages.

bill

1:52 am on Dec 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



SymbioticDesign brings up another aspect of this issue that I didn't mention. At the time I implemented my 'www-less' site there was some parallel discussion in the Google forum about the possibility that there was a risk of diluting your rank to some degree between the www and non-www versions of your site. Some people even argued that this was looked upon as duplicate content. Regardless of whether those arguments apply, I think it's quite important to have control over the way my company's URL is displayed on the SEs.

Afterall, with such an htaccess redirect, doesn't htt*://www.domain.com/dir/file.html redirect to htt*://domain.com/dir/file.html?
Yes, that's the way it works. You don't lose any existing links that way, your visitors are simply redirected to the proper URL.

jdMorgan

5:09 am on Dec 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sometimes, you can save a lot of time and worry by looking for information from an authority. Here's what Google has to say about 301 redirects [google.com] (See FAQ A2).

Jim

SymbioticDesign

6:04 am on Dec 25, 2003 (gmt 0)

10+ Year Member



Well, this is great news for me. The Google clarification hammers the nail on the head, for me.

When an SE sees a 301 redirect, it should drop the old page and index the new one instead. If that's what you mean by not liking redirects, then yes, but since redirects let you eliminate duplicate content, they should be considered good things.

No, actually I am really refering to Domain redirects, there. Google does not like duplicate sites. Some people will buy an expired Domain Name that is still producing traffic and will redirect that Domain to their own, as another example. Usually, when Google gets wind of this, the redirected site is dropped in the listings even if the traffic producing (previously expired) Domain still produces traffic. The upshot of this is that usually the traffic decreases steadily as links are corrected and users don't find the information they expect. The webmaster then sells the traffic domain before it's utterly useless.

Another example is to have another Domain parked on top of a company's main site. Once Google realizes that it is indexing identical content on two Domains it will drop the most recent submission. SEO's talk webmasters into doing this all the time, to sell a keyword rich domain. This is actually OK, if the company and SEO both realize that they then have to drop the older (company name) domain name in the SE listings. Google would eventually see such a site as a dupe and never allow the new keyword rich Domain any listing. And even while Google doesn't catch the dupe (or "mirror") site, you wind-up competing against yourself for the very same keywords anyway, diluting your edge.

Well, I digress, but that's what I meant by SE's frowning on redirects. And that is why I am very glad to hear that .htaccess redirects work out well. ;-)

As for vanity domains with redirections, I think they're pretty useless, except for type-in traffic. The SE's will abandon them, and most users will bookmark the url that shows up in the browser.

I agree wholeheartedly. However, I do like type-in traffic. And this is when a Domain redirect works, when it is NOT in the search engines, but directs traffic through one or two commonly used keywords. And because the user bookmarks the resulting site (if he/she likes) it becomes a big win. But, to be effective, it has to be targetted traffic.

Still, type-ins only generate 3-6 visitors per month (unless you are on to something hot that hasn't already been picked-up). And you have to be careful and only chose well used keywords which are usually all used up, with no hyphen, for the type-in traffic Domain. But, Domains are so cheap these days, it can be worth the gamble.

This is, as you can see, why I was unsure about the htaccess redirects and I thank you all for straightening me out there. This tip is excellent information for me and I thank you all for your posts, because it also encourages and endorses branding, which typically does not work well with most SEO work.

Merry Christmas! -DP (SymbioticDesign)

robert adams

7:21 am on Dec 25, 2003 (gmt 0)

10+ Year Member



OK guys, I'm confused. Anybody can get to my website with our without www. There are no redirects or htaccess files involved. I think it is in the httpd config file that has the alias for www.
What is all this about needing 301 redirects for the www. It is done automatically.

thanks,
robert

SymbioticDesign

8:14 am on Dec 25, 2003 (gmt 0)

10+ Year Member



The discussion concerns what URL (www. or no) is listed in the browser's address bar. Instead of just sending both www.foo.com and foo.com in and retaining those respective addresses, you can redirect them to one address or another.

This is a big plus because it helps reduce the possibility one guy linking to www.foo.com and and another guy who links to foo.com. Since search engines see the www.foo.com and foo.com URLs as 2 distinctly different addresses, it reduces the possibility of people splitting up your link popularity.

But I think the main point made was the most important one, It also promotes branding by making one address prominent. Furthermore, foo.com is a more rememberable address as opposed to www.foo.com, which bleeds into the usual lot of websites.

I think that covers it. But if I didn't explain it well, please re-read the topic, it's all there, and very good info. ;-)

-SymbioticDesign