🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.linux.security
1 messages
1 total messages Started by Marco Marsala Tue, 12 Sep 2006 22:54
problema con regexp complessa in RewriteRule Apache 2.x
#43
Author: Marco Marsala
Date: Tue, 12 Sep 2006 22:54
59 lines
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&nbsp;intorno a&nbsp;[0-9]* (lo =
vorrei come=20
$1 e non come $2!)<BR>Grazie, Marco</FONT></BODY></HTML>

------=_NextPart_000_002A_01C6D6CF.39CCDF60--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads