| | #1 |
| Active Warrior War Room Member Join Date: 2010
Posts: 37
Thanks: 12
Thanked 2 Times in 1 Post
|
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 |
| |
| | #2 |
| <?php echo("Hello"); ?> Join Date: 2011 Location: EU
Posts: 197
Thanks: 3
Thanked 27 Times in 27 Posts
|
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] |
| |
| | #3 |
| Active Warrior War Room Member Join Date: 2011
Posts: 63
Thanks: 4
Thanked 7 Times in 5 Posts
|
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] |
| Free article directory for publishers to download. Free article submission with fast approval times. Submit free articles with back links that are Do follow.
| |
| |
| | #4 |
| Warrior Member Join Date: 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
@PGA - same problem here, i m also facing these problems.
|
| | |
| |
|
| Bookmarks |
| Tags |
| redirect, www |
| |