htaccess www redirect with mod_rewrite
Let me explain my problem. Let say I have defined mod_rewrite rule and after implimenting the rule, url is:

    http://www.domain.com/1/2/3

<br>The actual url is:

    http://www.domain.com/?id=1&name=2&class=3
<br>
The above rule is working without problems. But when I use www redirect rule, I am getting some strange problem. This rule redirects non-www url to www.

    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

<br>Now, if i open this url:

    http://domain.com/1/2/3
it redirects to 

    http://www.domain.com/?id=1&name=2&class=3
I want it to redirect to:

    http://www.domain.com/1/2/3
<br>Thanks in advance!
htaccess www redirect with mod_rewrite
===

Let me explain my problem. Let say I have defined mod_rewrite rule and after implimenting the rule, url is:

    http://www.domain.com/1/2/3

<br>The actual url is:

    http://www.domain.com/?id=1&name=2&class=3
<br>
The above rule is working without problems. But when I use www redirect rule, I am getting some strange problem. This rule redirects non-www url to www.

    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

<br>Now, if i open this url:

    http://domain.com/1/2/3
it redirects to 

    http://www.domain.com/?id=1&name=2&class=3
I want it to redirect to:

    http://www.domain.com/1/2/3
<br>Thanks in advance!