Sorry first.
But have you looked at my question carefully?
Your solution CAN'T work at all!
-----Original Message-----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; beginners@perl.org
CC: [EMAIL PROTECTED]
Sent: Fri, 10 Aug 2007 6.06PM
Subject: RE: Help me with an url rewrite
First, you are correct.
This is not the list you need.
You should use something like this:
RewriteRule ^index.php/(.*)$
http://www.site.com/index.php?q1=$1&domain=abc
More info here: http://www.modrewrite.com/
Hope it helps.
Cristi Ocolisan
Let the record show: Microsoft is not an Australian company
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 10, 2007 12:53 PM
To: beginners@perl.org
Cc: [EMAIL PROTECTED]
Subject: Help me with an url rewrite
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/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
________________________________________________________________________
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/