Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB60C7152 for ; Tue, 20 Sep 2011 09:24:33 +0000 (UTC) Received: (qmail 42642 invoked by uid 500); 20 Sep 2011 09:24:30 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 42525 invoked by uid 500); 20 Sep 2011 09:24:29 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 42514 invoked by uid 99); 20 Sep 2011 09:24:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2011 09:24:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of otpinambour@gmail.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-wy0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2011 09:24:24 +0000 Received: by wyh22 with SMTP id 22so424945wyh.18 for ; Tue, 20 Sep 2011 02:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=WQ9zAkng/qoTuG9t3XQfJuNuPsjMlTuX968BtvJF9Zg=; b=tVPZZTdOK4gX3H49ATtVgZY3SLsfd00TgaBV9AEFkPT8U7Qcm4WoQA7CdW746GuHg1 1HEMorwlHuo4Xh5dYiH+GfZpnZ0KHavkeqskYN64cygTc0TKNuvXUjjT0+y1Fw1IwZ2d nPpBLmORhI5oVuYWdcW0+t+Jg6YlxuM5AF0zo= MIME-Version: 1.0 Received: by 10.216.230.138 with SMTP id j10mr621355weq.49.1316510642969; Tue, 20 Sep 2011 02:24:02 -0700 (PDT) Received: by 10.216.39.203 with HTTP; Tue, 20 Sep 2011 02:24:02 -0700 (PDT) In-Reply-To: References: <4E774486.1050009@gmail.com> Date: Tue, 20 Sep 2011 11:24:02 +0200 Message-ID: From: "topinambour ####" To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=0016e65ae4d0379cfe04ad5c0596 Subject: Re: [users@httpd] mod_rewrite? --0016e65ae4d0379cfe04ad5c0596 Content-Type: text/plain; charset=ISO-8859-1 good morning Yes i tried it without \? no match :-( but with standard output with : RewriteRule ^(.*)$ and no putting ^lang=fr$ in RewriteRule in old URL because it's automatic with RewriteCond %{QUERY_STRING} ------>> Output browser in other place in home network reject URL -->302 merci! thanks a lot :-) 2011/9/19 topinambour #### > Other try: > RewriteCond %{QUERY_STRING} ^\?lang=fr$ > RewriteRule ^[^\.]$/%1 ^[^\.]$ [L,R=302] > > then it continue with in inside network > 200 answer:-( in server > and it continue with ?lang=fr in url browser zone > without http://monsite.org/-Description-automatic redirect > > So one thing > there's no500 error > > > > 2011/9/19 Frank Gingras > >> On 19/09/2011 8:59 AM, J-H Johansen wrote: >> >>> On Mon, Sep 19, 2011 at 2:51 PM, topinambour #### >>> **wrote: >>> >>> Hi >>>> >>>> I have some problems about >>>> to write rewriterule in .htaccess >>>> I use spip and URL_propre >>>> >>>> URL read by google as : >>>> #URL_site/#URL_ARTICLE?page=fr >>>> i would want to use to remove:?lang=fr and do : >>>> /#URL_SITE/#URL_ARTICLE >>>> >>>> Summary, it would be : >>>> http://monsite.org/-**Description-?lang=fr >>>> to redirect to >>>> http://monsite.org/-**Description- >>>> >>>> I write : >>>> RewriteRule ^\?lang=fr$ ^[^\.]$ [L,R=302] >>>> nothing do >>>> >>>> any ideas please >>>> >>>> Something like this maybe? >>> >>> RewriteRule ^(.*)\?lang=fr$ $1 [L,R=302] >>> >>> >>> >> You can't match the query string with RewriteRule. Instead, use a >> RewriteCond with %{QUERY_STRING} >> >> Frank. >> >> ------------------------------**------------------------------**--------- >> The official User-To-User support forum of the Apache HTTP Server Project. >> See > >> for more info. >> To unsubscribe, e-mail: users-unsubscribe@httpd.**apache.org >> " from the digest: users-digest-unsubscribe@**httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org >> >> > --0016e65ae4d0379cfe04ad5c0596 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable good morning

Yes i tried it without \?
no match :-(

but w= ith standard output with :
RewriteRule ^(.*)$=A0
and no putting ^lan= g=3Dfr$ in RewriteRule in old URL
because it's automatic with Rewrit= eCond %{QUERY_STRING}

------>>
Output browser in other place in home network reject = URL -->302
merci!
thanks a lot :-)

2011/9/19 topinambour #### <otpinambour@gmail.com>
Other try:
RewriteCond %{QUERY_STRING} ^\?lang=3Dfr$
RewriteRule ^[^\.]$/%1=A0=A0=A0=A0=A0=A0=A0=A0 ^[^\.]$=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 [L,R=3D302]

then it continue with in inside network =
200 answer:-( in server
and it continue with ?lang=3Dfr in url brows= er zone
without http://monsite.org/-Description- automatic redirect
So one thing
there's no500 error


2011/9/19 Frank Gingras <= francois.gi= ngras@gmail.com>
On 19/09/2011 8:59 AM, J-H Johansen wrote:
On Mon, Sep 19, 2011 at 2:51 PM, topinambour ####<otpinambour@gmail.com>wr= ote:

Hi

I have some problems about
to write rewriterule in .htaccess
I use spip and URL_propre

URL read by google as :
#URL_site/#URL_ARTICLE?page=3Dfr
i would want to use to remove:?lang=3Dfr and do :
/#URL_SITE/#URL_ARTICLE

Summary, it would be :
ht= tp://monsite.org/-Description-?lang=3Dfr
to redirect to
http://monsi= te.org/-Description-

I write :
RewriteRule =A0^\?lang=3Dfr$ =A0 =A0^[^\.]$ [L,R=3D302]
nothing do

any ideas please

Something like this maybe?

RewriteRule =A0^(.*)\?lang=3Dfr$ $1 [L,R=3D302]



You can't match the query string with RewriteRule. Instead, use a Rewri= teCond with %{QUERY_STRING}

Frank.

-------------------------------------------------------------= --------
The official User-To-User support forum of the Apache HTTP Server Project.<= br> See <URL:http://httpd.apache.org/userslist.html> for more info.<= br> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
=A0" =A0 from the digest: users-digest-unsubscribe@httpd.a= pache.org
For additional commands, e-mail: users-help@httpd.apache.org



--0016e65ae4d0379cfe04ad5c0596--