Hi all, I have a site which is wordpress based. Therefore, when you type http://www.mysite.com it redirects on it's own to http://mysite.com. When submitting sites and creating internal links, should the structure be with or without the www? I'm not sure if theres anyway I can edit wordpress so it doesn't redirect and remove www. What's your take?
I believe that you can change that, check your .htaccess files. I believe those files change the url, not wordpress.
If you are talking about links pointing to your site, it does not matter. Just stay one way or the other with all back links you build. Either use with or without for all links you build. I always use the one without www for all my blogs. The PR will show up on both version in PR checkers. There is no need to remove the redirect, it does not affect anything. I would leave it like it is, I have several blogs and all have done good with the standard set up.
At the start: You really should choose with www or without www and be consistent. .htaccess (This is a general solution, for no www, not related to any one script) RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^example.com$ [NC] RewriteRule ^(.*)$ http://example.com$1 [L,R=301] Code (markup):
In general - you should ONLY use without the WWW The fact that wordpress is doing that is a good thing, always make links to your site from other websites the same way - WITHOUT the WWW... Why? Google sees: www.yoursite.com and yoursite.com as 2 different sites. So links to one + links to the other do NOT add up to give you your pagerank. Instead you will get: (for example) www.yoursite.com PR: 3 yoursite.com PR: 1 where you might have gotten yoursite.com PR: 4 if you hadn't split the domain that way. (well, this is an example to illustrate, It's not quite that simple, I know) Also, new web standards remove the "www." (which is technically, a subdomain) in favor of using the domain directly. did that help explain or did I just make it more confusing? haha, sometimes I confuse myself, but the idea is there.....
Your admin > settings >> Main URL and .htaccess can both have an effect. I just experiment and figure it out. . .. ... .... ..... ...... ....... ........ ........... .................. ........................... ........................................ ...................................................
Hello,you can easily change it to www .just login in to account and where you gave the website url change there to www.sitename.com..
Thanks a lot Good to know how to change it in wordpress..most of my links are without www so i'll just stick to it. Thanks again