Thread Tools Search this Thread
Unread 18th Dec 2008, 10:02 PM   #1
Jroh
 
Join Date: 2008
Location: Florida
Posts: 47
Thanks: 2
Thanked 11 Times in 7 Posts
Default
Great trick for redirecting yoursite.com to www.yoursite.com
Share on: 
fb share twitter share gplus share more share

I learned a great trick that will help your page ranking and link building using a 301 redirect. If somebody links to www.yoursite.com and somebody else links to yoursite.com, Google will assign a separate pagerank for each of those. The way to solve that is to redirect anything from yoursite.com to go to www.yoursite.com.


Add the code below to your .htaccess file replacing "yoursite" with your site's name:

RewriteEngine On
rewritecond %{http_host} ^yoursite.com
rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L]



Here's a link to more on 301 redirects: Steven Hargrove : How to redirect a web page, the smart way


Last edited on 18th Dec 2008 at 10:07 PM. Reason: changing code
jroh is offline   Reply With Quote
The Following User Says Thank You to jroh For This Useful Post:
Unread 19th Dec 2008, 03:04 AM   #2
Active Warrior
 
Stephen McPherson's Avatar
 
Join Date: 2008
Location: Canberra, Australia
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Great trick for redirecting yoursite.com to www.yoursite.com
Share on: 
fb share twitter share gplus share more share

Thanks for that. Now I just need to locate my .htaccess file. :confused:

SIGNATURE EDITED - please read sig rules
Stephen McPherson is offline   Reply With Quote
Unread 19th Dec 2008, 05:43 AM   #3
Advanced Warrior
 
tplahav's Avatar
 
Join Date: 2007
Location: , , Israel.
Posts: 612
Thanks: 16
Thanked 40 Times in 31 Posts
Blog Entries: 1
Default
Re: Great trick for redirecting yoursite.com to www.yoursite.com
Share on: 
fb share twitter share gplus share more share

Originally Posted by Stephen McPherson View Post

Thanks for that. Now I just need to locate my .htaccess file. :confused:
Hi Stephen,
The .htacces file is in your file manager. This is the first file after all the folders.

It is important for everyone to use this code and redirect their site.com to www.site.com. When it comes to traffic it looks like 2 different websites, and you want both to be counted in.

It's easy to do just copy and paste.

Tanny

tplahav is offline   Reply With Quote
Unread 19th Dec 2008, 08:24 AM   #4
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: 2008
Location: Pennsylvania, US
Posts: 1,562
Thanks: 55
Thanked 156 Times in 137 Posts
Blog Entries: 2
Default
Re: Great trick for redirecting yoursite.com to www.yoursite.com
Share on: 
fb share twitter share gplus share more share

This is something everyone should do to help their website rankings. I wasn't made aware of this until earlier this year, so thank you jroh for posting it here for everyone to see.

Alan

Alan Mater is offline   Reply With Quote
Unread 20th Dec 2008, 12:10 AM   #5
Jroh
 
Join Date: 2008
Location: Florida
Posts: 47
Thanks: 2
Thanked 11 Times in 7 Posts
Default
Re: Great trick for redirecting yoursite.com to www.yoursite.com
Share on: 
fb share twitter share gplus share more share

The .htaccess file should be in your root directory, it will be in something like "public_html" or "www". You will need to use an FTP manager program. Here is a link to one that has a 30 day free trial - click here. Locate the file and download it to your desktop, then open it with Microsoft Notepad or another text editor. Just cut and paste the code from above, save, then upload back to your directory.

I am no computer wiz and it took me all of a couple of minutes. Works great too....everything redirects to www.... like the others have said, it prevents your site from looking like 2 different sites and splitting the value you get from your backlinks.

jroh is offline   Reply With Quote
Unread 20th Dec 2008, 02:37 AM   #6
Banned
 
Join Date: 2008
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Blog Entries: 1
Default
Re: Great trick for redirecting yoursite.com to www.yoursite.com
Share on: 
fb share twitter share gplus share more share

Sometimes there is no .htaccess file at all , so just create one in your main folder.
ofir is offline   Reply With Quote
Unread 21st Dec 2008, 07:23 PM   #7
Active Warrior
War Room Member
 
landon's Avatar
 
Join Date: 2008
Location: , , .Greenville NC
Posts: 80
Thanks: 86
Thanked 3 Times in 3 Posts
Default
Re: Great trick for redirecting yoursite.com to www.yoursite.com
Share on: 
fb share twitter share gplus share more share

Hi Jroh, What exactly are you talking about. Is this something you have to do with your host 4 profit web panel. I am a total newbie and need more explanation. How do I do that? Dianne

landon is offline   Reply With Quote
Unread 23rd Dec 2008, 06:53 PM   #8
Jroh
 
Join Date: 2008
Location: Florida
Posts: 47
Thanks: 2
Thanked 11 Times in 7 Posts
Default
Re: Great trick for redirecting yoursite.com to www.yoursite.com
Share on: 
fb share twitter share gplus share more share

No, it is not something you have to do. It is just a good idea to do it if you are trying to make your site more search engine friendly.

jroh is offline   Reply With Quote


Bookmarks

Tags
301 redirect, great, redirecting, trick, wwwyoursitecom, yoursitecom

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 07:39 PM.