vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Team: Hot or Not? Ready for Traffic Explosion? vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! vBSEO Helps Forum Earn $100/day from Google AdSense Discover the Power of "Long Tail Search" Crawlability Inc. Files for SEO Technology Patent
se sw

redirect non-www to www

This is a discussion on redirect non-www to www within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, I want to put a code that redirects non-www to www. Is that bad and is it bad for ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > General Discussion

Enhancing 80 million pages.

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools
  #1  
Old 12-28-2005, 10:00 AM
Member
 
Join Date: Nov 2005
Posts: 88
redirect non-www to www

Hi,

I want to put a code that redirects non-www to www. Is that bad and is it bad for vbseo?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 12-28-2005, 10:03 AM
Keith Cohen's Avatar
vBSEO Staff
vBSEO Total Customer SupportBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,181
Blog Entries: 1
Re: redurect non-www to www

It's good.
__________________
Keith Cohen / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.



My Personal Sites: My Blog | GPS Discussion Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 12-28-2005, 06:40 PM
Senior Member
vBSEO Pre-Release Team
 
Real Name: Michael
Join Date: Oct 2005
Posts: 1,680
Blog Entries: 1
Re: redurect non-www to www

What is the best way to go about doing that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 12-28-2005, 06:42 PM
Keith Cohen's Avatar
vBSEO Staff
vBSEO Total Customer SupportBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,181
Blog Entries: 1
Re: redurect non-www to www

In your root .htaccess, and in your forums .htaccess:

Code:
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com 
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
Make sure it's above your other RewriteCond's in both files, but under the RewriteEngine On.
__________________
Keith Cohen / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.



My Personal Sites: My Blog | GPS Discussion Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 12-28-2005, 06:48 PM
Senior Member
vBSEO Pre-Release Team
 
Real Name: Michael
Join Date: Oct 2005
Posts: 1,680
Blog Entries: 1
Re: redirect non-www to www

Outstanding, thanks!

I am probably learning more from this forum that any other one I have been on. And I definately have alot to learn.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 12-28-2005, 06:51 PM
Keith Cohen's Avatar
vBSEO Staff
vBSEO Total Customer SupportBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,181
Blog Entries: 1
Re: redirect non-www to www

(See edit above.)
__________________
Keith Cohen / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.



My Personal Sites: My Blog | GPS Discussion Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 12-28-2005, 08:21 PM
Senior Member
 
Real Name: FAA Zooman
Join Date: Dec 2005
Location: Cumbria, UK
Posts: 200
Re: redirect non-www to www

Code:
 
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
In forums .htaccess it will need the forum path?

Code:
 
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com RewriteRule (.*) http://www.yourdomain.com/fourmpath/$1 [R=301,L]
otherwise it will push it back to the homepage.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 12-28-2005, 08:23 PM
Keith Cohen's Avatar
vBSEO Staff
vBSEO Total Customer SupportBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,181
Blog Entries: 1
Re: redirect non-www to www

Correct. I forgot to differentiate.
__________________
Keith Cohen / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.



My Personal Sites: My Blog | GPS Discussion Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 12-28-2005, 08:24 PM
Senior Member
 
Real Name: FAA Zooman
Join Date: Dec 2005
Location: Cumbria, UK
Posts: 200
Re: redirect non-www to www

Code:
 

#root .htaccesss 
RewriteCond %{HTTP_HOST} !^www\.sportsoutlaw\.com RewriteRule (.*) http://www.sportsoutlaw.com/$1 [R=301,L]
Code:
 

#forum .htaccesss 
RewriteCond %{HTTP_HOST} !^www\.sportsoutlaw\.com RewriteRule (.*) http://www.sportsoutlaw.com/forum/$1 [R=301,L]



Last edited by Ashley; 12-28-2005 at 08:38 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 12-28-2005, 08:45 PM
Senior Member
vBSEO Pre-Release Team
 
Real Name: Michael
Join Date: Oct 2005
Posts: 1,680
Blog Entries: 1
Re: redirect non-www to www

well, it worked for my forum, but not for my root.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11  
Old 12-28-2005, 08:47 PM
Keith Cohen's Avatar
vBSEO Staff
vBSEO Total Customer SupportBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,181
Blog Entries: 1
Re: redirect non-www to www

Worked for me when I went to http://sportsoutlaw.com
__________________
Keith Cohen / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.



My Personal Sites: My Blog | GPS Discussion Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12  
Old 12-28-2005, 08:48 PM
Senior Member
 
Real Name: FAA Zooman
Join Date: Dec 2005
Location: Cumbria, UK
Posts: 200
Re: redirect non-www to www

show us whats in your root .htaccess
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 12-28-2005, 08:49 PM
Senior Member
 
Real Name: FAA Zooman
Join Date: Dec 2005
Location: Cumbria, UK
Posts: 200
Re: redirect non-www to www

Quote:
Originally Posted by ConqSoft
Worked for me when I went to http://sportsoutlaw.com
And me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 12-28-2005, 08:50 PM
Senior Member
vBSEO Pre-Release Team
 
Real Name: Michael
Join Date: Oct 2005
Posts: 1,680
Blog Entries: 1
Re: redirect non-www to www

Code:
# -FrontPage-AddType application/x-httpd-php .php .htm .htmlIndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*order deny,allowdeny from allallow from allorder deny,allowdeny from allAuthName www.sportsoutlaw.comAuthUserFile /home/sportsou/public_html/_vti_pvt/service.pwdAuthGroupFile /home/sportsou/public_html/_vti_pvt/service.grpRewriteEngine onRewriteCond %{HTTP_HOST} !^www\.sportsoutlaw\.com RewriteRule (.*) http://www.sportsoutlaw.com/$1 [R=301,L]RewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://sportsoutlaw.com/.*$      [NC]RewriteCond %{HTTP_REFERER} !^http://sportsoutlaw.com$      [NC]RewriteCond %{HTTP_REFERER} !^http://thesportstavern.com/.*$      [NC]RewriteCond %{HTTP_REFERER} !^http://thesportstavern.com$      [NC]RewriteCond %{HTTP_REFERER} !^http://www.sportsoutlaw.com/.*$      [NC]RewriteCond %{HTTP_REFERER} !^http://www.sportsoutlaw.com$      [NC]RewriteCond %{HTTP_REFERER} !^http://www.thesportstavern.com/.*$      [NC]RewriteCond %{HTTP_REFERER} !^http://www.thesportstavern.com$      [NC]RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ /forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 12-28-2005, 08:50 PM
Senior Member
vBSEO Pre-Release Team
 
Real Name: Michael
Join Date: Oct 2005
Posts: 1,680
Blog Entries: 1
Re: redirect non-www to www

# -FrontPage-AddType application/x-httpd-php .php .htm .htmlIndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*order deny,allowdeny from allallow from allorder deny,allowdeny from allAuthName www.sportsoutlaw.comAuthUserFile /home/sportsou/public_html/_vti_pvt/service.pwdAuthGroupFile /home/sportsou/public_html/_vti_pvt/service.grpRewriteEngine onRewriteCond %{HTTP_HOST} !^www\.sportsoutlaw\.com RewriteRule (.*) http://www.sportsoutlaw.com/$1 [R=301,L]RewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://sportsoutlaw.com/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://sportsoutlaw.com$ [NC]RewriteCond %{HTTP_REFERER} !^http://thesportstavern.com/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://thesportstavern.com$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.sportsoutlaw.com/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.sportsoutlaw.com$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.thesportstavern.com/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.thesportstavern.com$ [NC]RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ /forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Redirecting non-www to www version DN lodge General Discussion 2 03-16-2008 11:47 AM
Redirect index.php?blablablabla googledave Custom Rewrite Rules 9 02-06-2006 08:45 PM
Best way to redirect my old forum to vb using 301 Bellinis General Discussion 11 10-29-2005 09:03 PM


All times are GMT -4. The time now is 08:34 PM.


Powered by vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.