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; yes but doesn't work on main site...

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 08-22-2008, 11:18 AM
Senior Member
Big Board Administrator
 
Real Name: Alex
Join Date: Mar 2007
Location: Italy
Posts: 163
yes but doesn't work on main site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32  
Old 08-22-2008, 11:21 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
You should create a separate .htaccess in domain root for that.
__________________
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
  #33  
Old 08-22-2008, 11:24 AM
Senior Member
Big Board Administrator
 
Real Name: Alex
Join Date: Mar 2007
Location: Italy
Posts: 163
i have already 2 .htaccess files, 1 domain root - 1 forum root
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #34  
Old 08-22-2008, 11:33 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
What is your domain root .htaccess? Do I understand correctly that it's top domain URL is not redirected?
__________________
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
  #35  
Old 08-22-2008, 11:37 AM
Senior Member
Big Board Administrator
 
Real Name: Alex
Join Date: Mar 2007
Location: Italy
Posts: 163
the top domain is not redirected and in the forum our members have problems to log in

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.player-art\.com$
RewriteRule ^(.*)$ http://player-art.com/$1 [L,R=301]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #36  
Old 08-22-2008, 11:57 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
Please open a ticket with ftp access for troubleshooting.
__________________
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
  #37  
Old 08-22-2008, 12:02 PM
Senior Member
Big Board Administrator
 
Real Name: Alex
Join Date: Mar 2007
Location: Italy
Posts: 163
Ok open

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #38  
Old 08-22-2008, 12:25 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
Update: the issues fixed by changing Wordpress URL to non-www domain as well.
__________________
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
  #39  
Old 09-07-2008, 06:25 PM
Junior Member
 
Real Name: Phil
Join Date: May 2008
Posts: 24
Hello,

I'm having trouble with this, I have
Code:
##AddType application/x-httpd-php5 .php

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.jeep-cj\.com
RewriteRule (.*) http://www.jeep-cj.com/$1 [R=301,L]
in the web root and
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} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$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]
in the forum root. The rewrite works for the root pages rewrites
Code:
jeep-cj.com to www.jeep-cj.com
but does not work in pages below the root such as the forums
Code:
jeep-cj.com/forums DOES NOT rewrite to www.jeep-cj.com/forums
Any advice would be apreciated.

Thanks,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #40  
Old 09-08-2008, 04:28 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
In forums/.htaccess you should find:
Code:
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
and replace with:
Code:
RewriteCond %{HTTP_HOST} !^www\.jeep-cj\.com
RewriteRule (.*) http://www.jeep-cj.com/forums/$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
  #41  
Old 09-08-2008, 09:38 AM
Junior Member
 
Real Name: Phil
Join Date: May 2008
Posts: 24
Quote:
Originally Posted by Oleg Ignatiuk View Post
In forums/.htaccess you should find:
Code:
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
and replace with:
Code:
RewriteCond %{HTTP_HOST} !^www\.jeep-cj\.com
RewriteRule (.*) http://www.jeep-cj.com/forums/$1 [L,R=301]
After trying that, the page
Code:
jeep-cj.com/forums
still does not rewrite to
Code:
www.jeep-cj.com/forms
- it still stays the same. I have tried a new browser and refreshing the pages. Still will not add the www to the link.

I thought that the rewrite in the root public_html directory was recursive, but it seems that that is not so.

Very frustrating... Ideas?

Thanks,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #42  
Old 09-08-2008, 09:50 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
What is your .htaccess file in forums/ folder now?
__________________
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
  #43  
Old 09-08-2008, 09:53 AM
Junior Member
 
Real Name: Phil
Join Date: May 2008
Posts: 24
Per the first post (in the instruction of this thread) I made it
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.jeep-cj\.com
RewriteRule (.*) http://www.jeep-cj.com/$1 [R=301,L]
Root folder.

Thanks for the help...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #44  
Old 09-08-2008, 09:56 AM
Junior Member
 
Real Name: Phil
Join Date: May 2008
Posts: 24
Sorry - you said forums folder...
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} !^www\.jeep-cj\.com\forums\
#RewriteRule (.*) http://www.jeep-cj.com/forums/$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
  #45  
Old 09-08-2008, 10:02 AM
Junior Member
 
Real Name: Phil
Join Date: May 2008
Posts: 24
Sorry, I'm feeling pretty dumb right now... I had forgot to uncomment it out...

It works now.

So, help understand a little here.

The root .htacess file is NOT recursive?

I will need to add a seperate .htacess file for all the folders I want to rewrite and add www?

Thanks,
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 11:46 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.