View Single Post
  #1 (permalink)  
Old 04-22-2005, 11:01 AM
bjbtexas's Avatar
bjbtexas bjbtexas is offline
WebProWorld Pro
 

Join Date: Feb 2004
Location: The Woodlands
Posts: 104
bjbtexas RepRank 0
Default Canonical Hostnames Mod Rewrite

You see sites that redirect the highlandergolf.com to www.highlandergolf.com all them time. I have found how to do it, but can't get it to work for my site. Any ideas as to why?

Code:
RewriteCond %{HTTP_HOST}!^www\.highlandergolf\.com [NC]
RewriteCond %{HTTP_HOST}!^$
RewriteRule ^/(.*) http://www.highlandergolf.com/$1 [L,R=301]
__________________
B.J.Baker
Adventure Travel Adventure Sports
Industrial Supply
Reply With Quote