18th Dec 2008, 10:02 PM | #1 |
Jroh Join Date: 2008 Location: Florida
Posts: 47
Thanks: 2
Thanked 11 Times in 7 Posts
|
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 | |
The Following User Says Thank You to jroh For This Useful Post: |
19th Dec 2008, 03:04 AM | #2 |
Active Warrior Join Date: 2008 Location: Canberra, Australia
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
Thanks for that. Now I just need to locate my .htaccess file. :confused:
|
SIGNATURE EDITED - please read sig rules
| |
19th Dec 2008, 05:43 AM | #3 | |
HyperActive Warrior Join Date: 2007 Location: , , Israel.
Posts: 305
Thanks: 16
Thanked 39 Times in 30 Posts
Blog Entries: 1 |
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 | |
| ||
19th Dec 2008, 08:24 AM | #4 |
Freelance Proofreader War Room Member Join Date: 2008 Location: Pennsylvania, US
Posts: 1,564
Thanks: 55
Thanked 154 Times in 135 Posts
Blog Entries: 2 |
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 |
AshMax - Earn $22,300 per month 100 days from now Work From Home Opportunities | Legitimate Work From Home Jobs Professional Proofreading and Editing Services Work From Home Resources Blog | |
20th Dec 2008, 12:10 AM | #5 |
Jroh Join Date: 2008 Location: Florida
Posts: 47
Thanks: 2
Thanked 11 Times in 7 Posts
|
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. |
| |
21st Dec 2008, 07:23 PM | #7 |
Active Warrior War Room Member Join Date: 2008 Location: , , .Greenville NC
Posts: 75
Thanks: 86
Thanked 2 Times in 2 Posts
|
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
|
http://www.onlinegreat.org Top Home Based Business http://www.onlinegreat.org/blog | |
23rd Dec 2008, 06:53 PM | #8 |
Jroh Join Date: 2008 Location: Florida
Posts: 47
Thanks: 2
Thanked 11 Times in 7 Posts
|
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.
|
| |
Bookmarks |
Tags |
301 redirect, great, redirecting, trick, wwwyoursitecom, yoursitecom |
| |