Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 18th May 2011, 10:40 AM   #1
PGA
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 37
Thanks: 12
Thanked 2 Times in 1 Post
Default
Please Help with WWW Redirect
Share on: 
fb share twitter share gplus share more share

Can someone please help with the following?

I had Hostgator set up a www redirect for one of my sites a few months ago. Since then I noticed that my site took a dive and is no longer ranking as it was. Maybe it's coincidence. Anyway, today I just deleted the www redirect so my site is like it was. Since both the www.mysite.com and mysite.com are indexed should I redirect www.mysite.com to mysite.com? I'm just concerned that Google will see it as duplicate content since both are indexed. Any thoughts?

Thanks,
P
PGA is offline  
Unread 18th May 2011, 11:32 AM   #2
<?php echo("Hello"); ?>
 
Join Date: 2011
Location: EU
Posts: 197
Thanks: 3
Thanked 27 Times in 27 Posts
Default
Re: Please Help with WWW Redirect
Share on: 
fb share twitter share gplus share more share

Google will indeed think its duplicated content.

You should choose wether you want with WWW or without WWW. I personally like to remove the WWW (but thats totaly up to you).

The code to remove WWW is:

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/ [R=301,L]
I dont know the code to add WWW, but I am sure a quick Google search will do it.
andrejvasso is offline  
Unread 23rd May 2011, 06:05 PM   #3
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 63
Thanks: 4
Thanked 7 Times in 5 Posts
Default
Re: Please Help with WWW Redirect
Share on: 
fb share twitter share gplus share more share

This is the code to redirect none www to www:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
If you are using Google Webmaster tools you can also tell Google what your preferred domain name is by going to Site configuration > Settings and then selecting either www or none www as the preferred domain.

Free article directory for publishers to download. Free article submission with fast approval times. Submit free articles with back links that are Do follow.
ToneUK is offline  
Unread 24th May 2011, 01:12 AM   #4
Warrior Member
 
Join Date: 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Please Help with WWW Redirect
Share on: 
fb share twitter share gplus share more share

@PGA - same problem here, i m also facing these problems.

rohini khanna is offline  
Closed Thread


Bookmarks

Tags
redirect, www


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 05:29 PM.