Jump to content


Make Money Forum Announcements

HELLO
- - - - -

Are you redirecting domain.com to www.domain.com?


  • Please log in to reply
11 replies to this topic

#1 Kenneth

Kenneth

    Senior Member

  • Members
  • PipPipPipPip
  • 448 posts
  • LocationDenmark

Posted 14 January 2011 - 09:13 AM

When you do SEO, you need to optimize for "domain.com" or "www.domain.com" (with or without www).
It's normal to optimize for "www".

The code below needs to be placed in a .htaccess file and placed in the root of your website.
It will then redirect all incoming requests to the www version of your website, even the PR juice will be redirected too.

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] 

Replace "domain.com" with your domain !

#2 morganfield

morganfield

    New Member

  • Members
  • 2 posts

Posted 14 January 2011 - 09:54 AM

I use CName to do this,any differences?Which is better?
Read web hosting reviews helps you a lot in choosing the best hosting provider

#3 Kenneth

Kenneth

    Senior Member

  • Members
  • PipPipPipPip
  • 448 posts
  • LocationDenmark

Posted 14 January 2011 - 10:20 AM

View Postmorganfield, on 14 January 2011 - 09:54 AM, said:

I use CName to do this,any differences?Which is better?

I have not used CNAME before, I have been using 301.
Have been reading about quite a few people getting penalized by Google because they did something wrong.

I always suggest people to use a 301 permanent redirect, it's easy and safe.

#4 MilkDud

MilkDud

    Graduated Member

  • Members
  • PipPipPip
  • 31 posts

Posted 15 January 2011 - 07:10 AM

Hmmm I might have to look into this. But I am pretty sure I have it all ready done when I set up my site. I think it was automatically done.

#5 Kenneth

Kenneth

    Senior Member

  • Members
  • PipPipPipPip
  • 448 posts
  • LocationDenmark

Posted 15 January 2011 - 07:55 AM

View PostMilkDud, on 15 January 2011 - 07:10 AM, said:

Hmmm I might have to look into this. But I am pretty sure I have it all ready done when I set up my site. I think it was automatically done.

No, this is not done automatically.
If your using wordpress, remember to change your blogurl to "www.yourdomain.com" in the wp-admin section, BEFORE uploading your .htaccess file or it might mess things up.

#6 MilkDud

MilkDud

    Graduated Member

  • Members
  • PipPipPip
  • 31 posts

Posted 17 January 2011 - 06:08 AM

Ahh thanks for the advice Kenneth, helped me out a lot. Most people don't do this for sure.

#7 Guest_MisterPhilip_*

Guest_MisterPhilip_*
  • Guests

Posted 31 January 2011 - 05:29 AM

I tend to do it the other way www.domain.tld -> domain.tld. It just looks cleaner.

However, it doesn't really matter which way you do it, as long as it is consistent.

#8 Kenneth

Kenneth

    Senior Member

  • Members
  • PipPipPipPip
  • 448 posts
  • LocationDenmark

Posted 31 January 2011 - 12:19 PM

View PostMisterPhilip, on 31 January 2011 - 05:29 AM, said:

I tend to do it the other way www.domain.tld -> domain.tld. It just looks cleaner.

However, it doesn't really matter which way you do it, as long as it is consistent.

Agree,

However, always add the htaccess file.

You need to do this, since you have absolutely no control how people link to your website, some PR will go to domain.com while the rest will go to www.domain.com

You need to redirect all PR into the same "domain" to maximize your SEO.

#9 Guest_MisterPhilip_*

Guest_MisterPhilip_*
  • Guests

Posted 31 January 2011 - 09:34 PM

Yeah, I have a 301 redirect for it

#10 Forum Reviews

Forum Reviews

    Forum Reviews

  • Administrators
  • 74 posts

Posted 01 February 2011 - 06:50 AM

Thanks for pointing this out. I am fairly new to running my own websites and I seemed to have overlooked this.

#11 Kenneth

Kenneth

    Senior Member

  • Members
  • PipPipPipPip
  • 448 posts
  • LocationDenmark

Posted 01 February 2011 - 09:58 PM

View Postsamiam, on 01 February 2011 - 06:50 AM, said:

Thanks for pointing this out. I am fairly new to running my own websites and I seemed to have overlooked this.

Your far from the only one ;)

#12 webrunner

webrunner

    New Member

  • Members
  • 10 posts

Posted 24 August 2012 - 05:31 PM

Thanks for the useful tip. I will implement it on my website.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users