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

Add www to forum url with no trailing slash

This is a discussion on Add www to forum url with no trailing slash within the General Discussion forums, part of the vBulletin SEO Discussion category; Good morning, I'm using the following .htaccess code to add a www to the url of my forum webpages: HTML ...

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

Enhancing 80 million pages.

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-24-2006, 11:45 AM
Junior Member
 
Real Name: David
Join Date: Apr 2006
Posts: 14
Add www to forum url with no trailing slash

Good morning,

I'm using the following .htaccess code to add a www to the url of my forum webpages:

HTML Code:
RewriteCond %{HTTP_HOST} !^www\.diabetesdaily\.com
RewriteRule (.*) http://www.diabetesdaily.com/forum/$1 [R=301,L]
This works flawlessly EXCEPT when there is no trailing slash on the url. For example:
http://diabetesdaily.com/forum

In this case, it appends the home directory on my server to the url like this:

http://www.diabetesdaily.com/forum//...lic_html/forum

Any ideas on how to fix this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 10-24-2006, 06:18 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,004
Blog Entries: 1
Please try to add another rewrite condition:
Code:
RewriteCond %{REQUEST_URI} forum/
__________________
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
  #3  
Old 10-24-2006, 07:57 PM
Junior Member
 
Real Name: David
Join Date: Apr 2006
Posts: 14
Thanks! It works perfectly. For future reference, here's what my .htaccess rule looks like:

HTML Code:
RewriteCond %{HTTP_HOST} !^www\.diabetesdaily\.com
RewriteCond %{REQUEST_URI} forum/
RewriteRule (.*) http://www.diabetesdaily.com/forum/$1 [R=301,L]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-21-2008, 01:20 PM
Junior Member
 
Real Name: Imran
Join Date: Nov 2006
Posts: 27
It helped me too 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
vBSEO 2.0 RC7 Released Juan Muriente vBSEO Announcements 17 09-08-2005 11:00 PM


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


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