Article View: comp.os.linux.security
Article #43problema con regexp complessa in RewriteRule Apache 2.x
From: Marco Marsala
Date: Tue, 12 Sep 2006 22:54
Date: Tue, 12 Sep 2006 22:54
59 lines
3981 bytes
3981 bytes
This is a multi-part message in MIME format. ------=_NextPart_000_002A_01C6D6CF.39CCDF60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ciao a tutti, come mai questa riga produce errore (Server = misconfiguration) RewriteRule ^[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\ = \-]+/[0-9a-zA-Z\ = \-]+/Hotel|Residence|BedandBreakfast|Appartamenti|Agriturismi|Campeggi/([= 0-9]*)$=20 /dettagli.php?hotel=3D$1 e questa invece funziona? RewriteRule ^[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\ = \-]+/[0-9a-zA-Z\ = \-]+/(Hotel|Residence|BedandBreakfast|Appartamenti|Agriturismi|Campeggi)/= ([0-9]*)$=20 /dettagli.php?hotel=3D$2 Vorrei rimuovere le parentesi attorno a = Hotel|Residence|BedandBreakfast|Appartamenti|Agriturismi|Campeggi = perch=E8 non mi servono! Mi servono solamente quelle intorno a [0-9]* = (lo vorrei come $1 e non come $2!) Grazie, Marco ------=_NextPart_000_002A_01C6D6CF.39CCDF60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff background=3D""><FONT face=3DArial size=3D2>Ciao = a tutti, come=20 mai questa riga produce errore (Server misconfiguration)<BR>RewriteRule=20 ^[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\=20 \-]+/Hotel|Residence|BedandBreakfast|Appartamenti|Agriturismi|Campeggi/([= 0-9]*)$=20 <BR>/dettagli.php?hotel=3D$1<BR><BR>e questa invece = funziona?<BR>RewriteRule=20 ^[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\ \-]+/[0-9a-zA-Z\=20 \-]+/(Hotel|Residence|BedandBreakfast|Appartamenti|Agriturismi|Campeggi)/= ([0-9]*)$=20 <BR>/dettagli.php?hotel=3D$2<BR><BR>Vorrei rimuovere le parentesi = attorno a=20 Hotel|Residence|BedandBreakfast|Appartamenti|Agriturismi|Campeggi = perch=E8 non mi=20 servono! Mi servono solamente quelle intorno a [0-9]* (lo = vorrei come=20 $1 e non come $2!)<BR>Grazie, Marco</FONT></BODY></HTML> ------=_NextPart_000_002A_01C6D6CF.39CCDF60--
Technical Details
Message-ID:
<0VGNg.105230$zy5.1626506@twister1.libero.it>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 106e9e,be19df196720ea3a,start X-Google-Thread: 10a08b,be19df196720ea3a,start X-Google-Thread: f9de0,be19df196720ea3a,start X-Google-Thread: 10d5fc,be19df196720ea3a,start X-Google-Thread: 113a50,be19df196720ea3a,start X-Google-Thread: 111eb9,be19df196720ea3a,start X-Google-Thread: f59b9,be19df196720ea3a,start X-Google-Thread: 103cbb,be19df196720ea3a,start X-Google-Attributes: gid106e9e,gid10a08b,gidf9de0,gid10d5fc,gid113a50,gid111eb9,gidf59b9,gid103cbb,public X-Google-Language: ITALIAN,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail From: "Marco Marsala" <warcraft2002@libero.it> Newsgroups: comp.os.linux.security,ee.arvutid.unix.linux.poliitika,free.it.comp.os.linux.debian,free.it.comp.os.linux.iniziare,free.it.linux,free.it.linux.distribuzioni,free.it.linux.slackware,free.it.linux.suse,git.unix.linux.mailing-lists.ale,hannet.ml.lin Subject: problema con regexp complessa in RewriteRule Apache 2.x Lines: 60 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002A_01C6D6CF.39CCDF60" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Message-ID: <0VGNg.105230$zy5.1626506@twister1.libero.it> Date: Tue, 12 Sep 2006 22:54:52 GMT NNTP-Posting-Host: 151.44.131.212 X-Complaints-To: abuse@libero.it X-Trace: twister1.libero.it 1158101692 151.44.131.212 (Wed, 13 Sep 2006 00:54:52 MET DST) NNTP-Posting-Date: Wed, 13 Sep 2006 00:54:52 MET DST Organization: [Infostrada]