View Single Post

  #3 (permalink)  
Old 05-15-2006
Jim Carlock
 
Posts: n/a
Default Re: Handle mistyping qqq instead of www? %{} variables? Define $1. Define ^.

"Robert Ionescu" replied:
> your first rule is redundant:


RewriteEngine On
# ...not empty
RewriteCond %{HTTP_HOST} !=""
RewriteCond %{HTTP_HOST} !^www\.aquaticcreationsnc\.com [nc]
RewriteRule ^(.*) http://www.aquaticcreationsnc.com/$1 [R=301,L]

Thanks for catching that. What's the purpose for the first condition
above? A blank URI can get passed through an .htaccess file?

Jim Carlock
Post replies to the group.
--
Raleigh Swimming Pool Builder http://www.aquaticcreationsnc.com/