Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
dmOZ
dmOZ
htaccess_mysite.txt (453 bytes)  
I hoping someone can assist with helping solve this little issue as I'm not up to speed on .htaccess files and re-write rules.
 
I'm trying to ensure that if a user doesnt enter in the WWW portion of my website that via .htaccess they are redirected to the full address.
eg.
User types/pastes:
mysite.com
 
redirects to
www.mysite.com
 
So far I have been able to get this to work OK for the example above using a [301] redirect, but if they are on a sub-directory of the site its not working
eg.
User types/pastes:
mysite.com/about.php
 
it isnt redirecting
www.mysite.com/about.php
 
Similarly if they have bookmarked or copied a url with parameters
eg.
User types/pastes:
mysite.com/articles.php?category_id=4
 
Should redirect to:
www.mysite.com/articles.php?category_id=4
 
I've attached a copy of my .htaccess file -- its a bit of mess in part due the CPANEL that my hosting provider has available
 
dmOZ
dmOZ
Looks like i sorted. My rewrite rule was wrong
 
RewriteCond %{HTTP_HOST} ^mysite.com$
RewriteRule ^(.*)$ "http\:\/\/www\.mysite\.com\/$1" [R=301,L]