vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
New vBSEO Discount Level for Network Builders Meet vBSEO Team in New York (Nov. 3rd & 4th) vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! 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; Hello, please try using .htaccess rewrite rule in root folder instead of the option: http://www.vbseo.com/23757-post28.html (just modify it with your ...

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

Enhancing 80 million pages.

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

Reply

 

LinkBack Thread Tools
  #31  
Old 04-24-2006, 09:48 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,450
Blog Entries: 1
Re: redirect non-www to www

Hello,

please try using .htaccess rewrite rule in root folder instead of the option: http://www.vbseo.com/23757-post28.html (just modify it with your domain name accordingly)
__________________
Oleg Ignatiuk / 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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32  
Old 07-04-2007, 09:14 PM
Junior Member
 
Real Name: Bouncer
Join Date: Jul 2007
Posts: 1
Wink

Hi,

You cannot work like that. Look this is working for me fine.

Use the following code after RewriteEngine On. Your .htaccess file must be in your forum directory.

Code:
RewriteCond %{HTTP_HOST} !^www\.example.\.com 
RewriteRule (.*) http://www.example.com/vb/$1 [R=301,L]
RewriteBase /vb/
If you do not want to use your main directory for other purpose you can redirect to your forum with another .htaccess in the root directory.

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule (.*) http://www.example.com/vb/$1 [R=301,L]
RedirectMatch permanent ^/$ http://www.example.com/vb/
RewriteBase /
I hope this will help you. It is tested with my forum and working 100%


Quote:
Originally Posted by Oleg Ignatiuk View Post
Hello,

please try using .htaccess rewrite rule in root folder instead of the option: http://www.vbseo.com/23757-post28.html (just modify it with your domain name accordingly)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #33  
Old 03-16-2008, 12:45 PM
Joe Ward's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Joseph Ward
Join Date: Jun 2005
Location: Puerto Rico
Posts: 19,320
Blog Entries: 7
New resource:
[How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects
__________________
Joe Ward / 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.

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


Similar Threads

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


All times are GMT -4. The time now is 11:34 AM.


Powered by vBulletin Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.