Help me with an url rewrite

2007-08-10 Thread pennyyh
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

Re: Help me with an url rewrite

2007-08-10 Thread Cristi Ocolisan
: Friday, August 10, 2007 1:15 PM To: [EMAIL PROTECTED] Cc: beginners@perl.org Subject: Re: Help me with an url rewrite 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]; begi

Re: Help me with an url rewrite

2007-08-10 Thread Nils Kaiser
Hello, well this is more of a mod_rewrite question. The problem is that you have to use the QUERY_STRING variable in order to access parameters, these are not part of the normal scope of the RewriteCond / RewriteRule stuff. Refer to the mod_rewrite guide for that. We use this to append a use

Re: Help me with an url rewrite

2007-08-10 Thread pennyyh
Hmm, then please don't post your WRONG solution sample. -Original Message- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Fri, 10 Aug 2007 6.26PM Subject: Re: Help me with an url rewrite Hmm, 1. I did not sent a solution. 2. I just suggested how you should

Re: Help me with an url rewrite

2007-08-10 Thread pennyyh
Thank you.it works perfectly. -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: beginners@perl.org; [EMAIL PROTECTED] Sent: Fri, 10 Aug 2007 6.16PM Subject: Re: Help me with an url rewrite Hello, well this is more of a mod_rewrite question. The problem is that you

RE: Help me with an url rewrite

2007-08-10 Thread Cristi Ocolisan
lian 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 h

Re: Help me with an url rewrite

2007-08-10 Thread pennyyh
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, yo

RE: Help me with an url rewrite

2007-08-10 Thread Cristi Ocolisan
: Help me with an url rewrite Hmm, then please don't post your WRONG solution sample. -Original Message- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Fri, 10 Aug 2007 6.26PM Subject: Re: Help me with an url rewrite Hmm, 1. I did not sent a solution. 2. I