This is a discussion on [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects within the General Discussion forums, part of the vBSEO SEO Plugin category; Originally Posted by zems So if I am using non www in google, should I do it also in .htaccess ...
Just set it in .htaccess.
Thank you Neo and Ceri![]()
correct, and also in your vboptions -> BB URL setting. They should all match.
Brian Cummiskey / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
I scanned through this thread and didnt see a full answer..
so far I have
site.com -> www.site.com
and would like to handle
site.com/chat/ -> www.site.com/chat/
do I have to be concerned about the slash at the end of chat. ie if someone puts site.com/chat it wont redirect?
Anyone willing to provide the rewrite?
thanks
MEH
Hi,
As long as you don't have another .htaccess file inside the chat folder then the rule supplied on the first page will be all you need it redirects anything after the domain to the new one so site.com/whatever/ will go to www.site.com/whatever
Ceri
Yea, I have tried a few times to get it to work but continue to have it fail in my /chat/ directories. I understand that the root pub html htaccess is recursive and carries over so I have added a new htaccess file to the /chat/ dir.
For whatever reason, it will not rewrite. However, the htaccess is being used as I can break it and disable the site.
Thoughts?
MEH
So, which one do we set in Google Webmaster tools then? www or non-www? Which one is better? Currently, we have been using Google Webmaster tools, but have the "Preferred domain" not set.
Help?
MakeupTalk.com 1.6 million posts - 3MultiMedia.com
MakeupTalk.com 1.6 million posts - 3MultiMedia.com
Totally Agree, I use non-www for my sites for two reasons.
- no-www makes the URL's shorter. I do a lot of twitter promo and that extra 4chars makes all the difference.
- the www. subdomain is outdated and not needed now so if you have the choice why use something outdated?
Clearly if you are already mostly indexed with the www. then keep it because just as much there is no point being re-indexed just for 4chars.
What is important is that you stick to one and use it globally.
Use which ever google has the most results for.
Then, set
- webmaster tools preferred domain
- htaccess
- vboptions -> site url
to all the same, either with or without.
I personally prefer without as its simply un-necessary to use it anymore, but using www's is not bad either.
Brian Cummiskey / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Results 1 - 10 of about 79,000 for makeuptalk.com/forums. (0.43 seconds)
Results 1 - 10 of about 5,330,000 for MakeupTalk. (0.59 seconds)
I think you mean that ^^^, right?
MakeupTalk.com 1.6 million posts - 3MultiMedia.com
That would be the one, now see for you changing to non-www would be disastrous as the 5,330,000 URL's would all need to be reindexed, though it would be recommended you look at your redirect as currently makeuptalk.com/forums redirects to www.makeuptalk.com not www.makeuptalk.com/forums as it should.
here is my .htaccess:
How does that look?RewriteCond %{HTTP_HOST} ^makeuptalk\.com
RewriteRule ^(.*)$ http://www.makeuptalk.com/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|redir\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
Also, while in Google Webmaster tools, I tried to set the "Display URLs as www.makeuptalk.com " but it keeps saying "Part of the process of setting a preferred domain is to verify that you own http://makeuptalk.com/. Please verify http://makeuptalk.com/."
I thought I verified it over a year ago when Ifirst started using GWT, but now it says that. How do I verify it?
MakeupTalk.com 1.6 million posts - 3MultiMedia.com