Hi,

I'm having some trouble writing this part. All of my pages reside in domain.com/store and I would like to be able to rewrite this in my htaccess so that if someone types domain.com/store or www.domain.com/store, it will automatically go to www.domain.com/

Can someone help out with this? This is what I've tried with no success...

Code:
    Options +FollowSymLinks
    RewriteEngine on
	RewriteCond %{HTTP_HOST} ^domain.com/store$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
What am I doing wrong here? Google has indexed both domain.com and domain.com/store which are complete duplicate content as domain.com/store/index.php is the same as domain.com