Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Plug-In Profit Site Support Forum (https://www.warriorforum.com/plug-profit-site-support-forum/)
-   -   Great trick for redirecting yoursite.com to www.yoursite.com (https://www.warriorforum.com/plug-profit-site-support-forum/37479-great-trick-redirecting-yoursite-com-www-yoursite-com.html)

jroh 18th December 2008 10:02 PM

Great trick for redirecting yoursite.com to www.yoursite.com
 
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

Stephen McPherson 19th December 2008 03:04 AM

Re: Great trick for redirecting yoursite.com to www.yoursite.com
 
Thanks for that. Now I just need to locate my .htaccess file. :confused:

tplahav 19th December 2008 05:43 AM

Re: Great trick for redirecting yoursite.com to www.yoursite.com
 
Quote:

Originally Posted by Stephen McPherson (Post 342708)
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

Alan Mater 19th December 2008 08:24 AM

Re: Great trick for redirecting yoursite.com to www.yoursite.com
 
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

jroh 20th December 2008 12:10 AM

Re: Great trick for redirecting yoursite.com to www.yoursite.com
 
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.

ofir 20th December 2008 02:37 AM

Re: Great trick for redirecting yoursite.com to www.yoursite.com
 
Sometimes there is no .htaccess file at all , so just create one in your main folder.

landon 21st December 2008 07:23 PM

Re: Great trick for redirecting yoursite.com to www.yoursite.com
 
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

jroh 23rd December 2008 06:53 PM

Re: Great trick for redirecting yoursite.com to www.yoursite.com
 
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.


All times are GMT -6. The time now is 04:01 PM.