I'm not sure if I've asked the correct lists,but hope I can get some helps here.:)

I need a mod_rewrite rule,rewrite this url:
http://abc.site.com/index.php?q1=v1
to:
http://www.site.com/index.php?q1=v1&domain=abc

I applicated this rule:

   RewriteEngine on
   RewriteRule   ^/(.+)$  http://www.site.com/$1&domain=abc


But I'm faint I can't get the correct result,it rewrote the url to:

http://www.site.com/index.php&domain=abc?q1=v1

(not http://www.site.com/index.php?q1=v1&domain=abc)

This disorder the things,I do hate it.

Can you show me a correct way?thanks.
________________________________________________________________________
Check out the new free AOL Email -- 2GB of storage and industry-leading spam and email virus protection.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to