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

[How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects

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; This one is different the one that is in the .htaccess file in /forum that came with vbseo Code: RewriteCond ...

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
  #16  
Old 03-28-2008, 12:53 PM
Julio's Avatar
Senior Member
 
Real Name: Julio
Join Date: Aug 2006
Location: Bronx, NY
Posts: 246
Send a message via AIM to Julio
This one is different the one that is in the .htaccess file in /forum that came with vbseo

Code:
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
How can i make the one that came with vbseo redirect to http://domain.com ?

Code:

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301]
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17  
Old 03-28-2008, 07:30 PM
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
Hello,

the code would be:
Code:
RewriteCond %{HTTP_HOST} !^yourdomain\.com
RewriteRule (.*) http://yourdomain.com/forum/$1 [L,R=301]
__________________
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
  #18  
Old 03-29-2008, 12:10 AM
Julio's Avatar
Senior Member
 
Real Name: Julio
Join Date: Aug 2006
Location: Bronx, NY
Posts: 246
Send a message via AIM to Julio
Thanks oleg,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19  
Old 04-03-2008, 06:42 PM
Senior Member
 
Real Name: Chris Powell
Join Date: Dec 2006
Location: UK
Posts: 114
hi for the main domain name ive put the redirect code in htaccess so non-www goes to www but how about the forums...or is it only need with the main domain name?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20  
Old 04-04-2008, 12:42 AM
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
If your forum is located in a sub-folder, then nothing additional is required.
__________________
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
  #21  
Old 04-19-2008, 04:40 PM
Junior Member
 
Real Name: azyya
Join Date: Apr 2008
Posts: 4
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22  
Old 04-21-2008, 10:02 AM
Junior Member
 
Real Name: Niti Rungrojchai
Join Date: Apr 2008
Posts: 1
Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23  
Old 05-05-2008, 05:35 PM
Junior Member
 
Real Name: bernie
Join Date: Jan 2008
Posts: 1
Ive set this up in the .htaccess file in the forum folder however some users are experiencing 404 pages when browsing. It occasionally happens when a user logins with incorrect password. Or when a user clicks home from a forum thread.

Don't seem to get the issue myself anymore but when I type in http://mywebsite.com/forum
it wont show the forum redirects to http://www.mywebsite.com/forums//web...ite.com/forums
(which is a 404 not found page)


However if I type in http://mywebsite.com/forum/ it redirects to http://www.mywebsite.com/forum/ fine.

Last edited by bernie; 05-05-2008 at 06:26 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24  
Old 05-06-2008, 07:34 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
Hello,

replied to your ticket.
__________________
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
  #25  
Old 05-23-2008, 02:09 AM
djawir's Avatar
Junior Member
 
Real Name: Adri
Join Date: Feb 2008
Location: Indonesia
Posts: 17
Send a message via Yahoo to djawir
how to setup using sub domain?
Code:
i am used http://forum.djawir.com
i want redirect from http://www.forum.djawir.com to http://forum.djawir.com 
its corect or not
Code:
RewriteCond %{HTTP_HOST} !^www\.forum.djawir\.com
RewriteRule (.*) http://forum.djawir.com/$1 [L,R=301]
thanks

Last edited by djawir; 05-25-2008 at 09:01 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26  
Old 06-08-2008, 04:54 PM
Member
 
Real Name: Riccardo
Join Date: Jun 2008
Posts: 52
Hi all, hi joe,
what is the best choise for a not expert user like me?

www or not www?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27  
Old 08-16-2008, 11:02 AM
Senior Member
Big Board Administrator
 
Real Name: Alex
Join Date: Mar 2007
Location: Italy
Posts: 163
yes good question, and if someone want to change his first choice, there is a bad impact in indexing?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28  
Old 08-19-2008, 03:51 AM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,476
www. is deprecated.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29  
Old 08-22-2008, 10:15 AM
Senior Member
Big Board Administrator
 
Real Name: Alex
Join Date: Mar 2007
Location: Italy
Posts: 163
i've tried to use the no www. but in my main site doesn't work
Code:
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
in forum i use this htaccess code.

Code:
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

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

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30  
Old 08-22-2008, 10:51 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
Did you update your forums URL in vB admincp options?
__________________
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
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
Urgent help with htaccess and 301 redirects markbolyard URL Rewrite Settings 4 12-02-2007 05:24 PM
htaccess redirects when moving folder I, Brian Troubleshooting 3 10-05-2007 02:47 PM
Help with initial htaccess setup mhc1576 URL Rewrite Settings 1 12-28-2006 07:44 AM
301 redirects disabled, vBSEO still redirects to new archive PageUp Troubleshooting 6 10-23-2005 01:32 PM


All times are GMT -4. The time now is 12:28 PM.


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