Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 92622 invoked from network); 16 Oct 2009 13:00:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Oct 2009 13:00:41 -0000 Received: (qmail 27346 invoked by uid 500); 16 Oct 2009 13:00:37 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 27288 invoked by uid 500); 16 Oct 2009 13:00:37 -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 27272 invoked by uid 99); 16 Oct 2009 13:00:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 13:00:37 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of icicimov@gmail.com designates 209.85.217.210 as permitted sender) Received: from [209.85.217.210] (HELO mail-gx0-f210.google.com) (209.85.217.210) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 13:00:34 +0000 Received: by gxk2 with SMTP id 2so1790740gxk.4 for ; Fri, 16 Oct 2009 06:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=CbjjjJqmkGTf9PW+fQe6C2pnaPJe2e32kw/Ql8p94dI=; b=Ntk0/Aq/C3ksBzxpCC03PqqJ7v83as6ClXbQ6odG9/uXTjnu8I48PP2VJc+UIROa1m 17S9as7vzhJtZ/0QNP1PAK+4bIe1g6+9wV8Nhp5s5Ah7U+6fhuOAaV+g9OI2i4ocMXyA NmliOyuxE7jlEm7Kz+t0vm7UnUxV+I3mpTL8c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=r1S6zi/myKnBP/Ppg64CrODsCg5FkWlGJyfXVv22cXxgmQybGxKrQyE0E8y360GYKt b5Y06R3GQR3Z65zjru7w6WDT9sVNzeFpbC4mJpcWl8E69O7CdWufkucpUDMGunRhn5++ Ok/k99EqKpU/uePWaqB6S6XGisgd46JB1WarU= MIME-Version: 1.0 Received: by 10.150.172.7 with SMTP id u7mr2669502ybe.247.1255698013677; Fri, 16 Oct 2009 06:00:13 -0700 (PDT) In-Reply-To: <393931.6289.qm@web32801.mail.mud.yahoo.com> References: <393931.6289.qm@web32801.mail.mud.yahoo.com> Date: Fri, 16 Oct 2009 23:00:13 +1000 Message-ID: From: Igor Cicimov To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=000e0cd58ef80ce80b04760cfa7c Subject: Re: [users@httpd] URL-Rewrite Problem --000e0cd58ef80ce80b04760cfa7c Content-Type: text/plain; charset=ISO-8859-1 Have you tried the NE flag in the rewrite rule? On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V wrote: > I have a problem with rewriting certain urls which contains special > characters.Please have a look at the following urls > RewriteRule ^/Football/Quarter-Reports%C2%A0 /Football/Quarter-Reports > [R=301,L] > The problem is the server interprets it differently as the special > characters change the url. > If I changer the rule to something like RewriteRule > ^/Football/Trend-Reports(.*) or [a-zA-Z0-9-]* > it will not redirect properly. > Some another examples are given below. > 1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-game%20target= > /Tennis/Play/xyx-xyz-s-Winning-game /Tennis/Play/xyx-xyz-s-Winning-game > [R=301,L] > 2) RewriteRule > ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK/ST%C3%86RK > /Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK/STAERK > > Does anybody has any experience with this? Please suggest some solutions. > > > > --000e0cd58ef80ce80b04760cfa7c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Have you tried the NE flag in the rewrite rule?

On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V <anuchettan10@yahoo.com>= wrote:
I have a problem with rewriting certain urls which contains special charact= ers.Please have a look at the following urls
RewriteRule ^/Football/Quar= ter-Reports%C2%A0=A0=A0=A0 /Football/Quarter-Reports=A0 [R=3D301,L]
The = problem is the server interprets it differently as the special characters c= hange the url.
If I changer the rule to something like RewriteRule ^/Football/Trend-Report= s(.*) or [a-zA-Z0-9-]*
it will not redirect properly.
Some another ex= amples are given below.
1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-g= ame%20target=3D=A0=A0 /Tennis/Play/xyx-xyz-s-Winning-game =A0 /Tennis/Play/= xyx-xyz-s-Winning-game [R=3D301,L]
2)=A0 RewriteRule ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK= /ST%C3%86RK=A0=A0=A0=A0=A0=A0 /Football/xyz-xyz-to-Play/Fall-2008-Ready-to-= Play/STAERK/STAERK

Does anybody has any experience with this? Please suggest some solutions.



--000e0cd58ef80ce80b04760cfa7c--