![]() | | ||||||||
| | #1 |
| Warrior in Training War Room Member Join Date: Apr 2011 Location: Canada
Posts: 347
Blog Entries: 8 Thanks: 40
Thanked 27 Times in 24 Posts
|
How do you do this to make it so that a www domain is the same a a non-www domain? I tried google and I'm still kinda confused so I thought I would ask here for a full tutorial. I'm using wordpress btw.
|
| ERTW | |
| | |
| | #2 |
| HyperActive Warrior War Room Member Join Date: Jan 2008 Location: Missouri
Posts: 247
Thanks: 19
Thanked 42 Times in 36 Posts
|
I honestly (and embarrassingly) haven't really taken the time to get into all that. But from my quick search I found this. Hope it helps! How to 301 Redirect Non-WWW to WWW URLs*|*StepForth Web Marketing Inc. |
| | |
| | |
| | #3 |
| Warrior in Training War Room Member Join Date: Apr 2011 Location: Canada
Posts: 347
Blog Entries: 8 Thanks: 40
Thanked 27 Times in 24 Posts
|
yeah found that page on google, but I'm a bit of a newbie and need a really simple "do this. do that" for wordpress.
|
| ERTW | |
| | |
| | #4 |
| Active Warrior Join Date: Nov 2008
Posts: 81
Thanks: 0
Thanked 9 Times in 7 Posts
|
you simply create a htaccess file and put the code in it that they tell you to. now, why do you think you need to do this? simply choose one or the other and use it exclusively. rarely will anyone type a domain name into their browser these days. they will simply click on whatever the link is wherever they find it. As far as I know, it makes no real difference to google etc. for page ranking etc. Seems like a lot of worry for something that makes no real difference. luck, robert |
|
phpBB integration with your website PM for details. free website builder | |
| | |
| | #5 |
| Warrior in Training War Room Member Join Date: Apr 2011 Location: Canada
Posts: 347
Blog Entries: 8 Thanks: 40
Thanked 27 Times in 24 Posts
|
I backlink only to a www domain but when I search my keyword on google I get the non-www version of it appearing. I find it kind of weird and feel like it may not be getting the benefit of the backlinks that I'm creating for it.
|
| ERTW | |
| | |
| | #6 |
| Donald VanFossen War Room Member Join Date: May 2008 Location: Upstate NY , USA.
Posts: 2,051
Thanks: 355
Thanked 461 Times in 213 Posts
| Code: RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.YOURDOMAIN.com$
RewriteRule ^(.*)$ http://www.YOURDOMAIN.com/$1 [R=301] |
| | |
| | |
| | #8 |
| Donald VanFossen War Room Member Join Date: May 2008 Location: Upstate NY , USA.
Posts: 2,051
Thanks: 355
Thanked 461 Times in 213 Posts
|
Goes in .htaccess in the root folder of the domain.
|
| | |
| | |
![]() |
|
| Tags |
| 301, redirect, tutorial |
| Thread Tools | |
| |
![]() |