Here is the begining of my .htaccess
# invoke rewrite engine
RewriteEngine On
RewriteBase /~new
# force non domain.com to www.domain.com
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301,L,NC]
everytime I request http://www.example.com/~new/whatever I am sent to http://www.example.com/whatever . I placed brackets around the $1 and I get http://www.example.com/[whatever].
Why is it stripping out my RewriteBase var ?
Or, is there a way to set an environmental variable in .htaccess that I can set RewriteBase to and also put in front of the $1 to make the redirection work?