Hi

Can someone please tell me, what would be the right code for none www to www domain redirect?
At the moment i'm using the code below, but it doesn't work. It does redirect from none www to www domain but the problem here is, that i can't login into admin area, if i use that code, because i'm always redirected to
www.my-domain.net/admin/login/index.phpOptions +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^my-domain.net [nc]
rewriterule ^(.*)$ http://www.my-domain.net/$1 [r=301,nc]
I also want a redirect for index.php, so if the user visits site like this ->
www.domain.net/index.php, he is redirected to
www.domain.net. I tried with the code below and it does work but, i can't login into admin then, because i'm always redirected to
www.my-domain.net/admin/login/index.phpRewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.my-domain.net/ [R=301,L]
So what am i doing wrong?
Thanks, Housy