httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Gros" <gill...@whitepj.com>
Subject RE: rewrite Question
Date Mon, 19 Aug 2002 23:41:03 GMT
Thanks,

	I found the right syntax :

 RewriteEngine On
 RewriteCond %{QUERY_STRING} id=(.*)
 RewriteRule ^/HELP/login.php /%1/HELP/login.php?%{QUERY_STRING}

Thnak you for the hint.

Gilles


> -----Original Message-----
> From: Joshua Slive [mailto:joshua@slive.ca]
> Sent: Monday, August 19, 2002 3:39 PM
> To: users@httpd.apache.org; gillesg@whitepj.com
> Subject: RE: rewrite Question
>
>
>
> On Mon, 19 Aug 2002, Gilles Gros wrote:
>
> > yes, but I need to find what was the xxx, because it can change.
> >
> > In fact xxx is dynamic per user. I was looking at :
> >
> > RewriteEngine On
> > RewriteRule ^/HELP/login.php?id=(.*) /$1/HELP/login.php?id=$1
> >
> > but the URI in the rewrite engine does not contain ?id=xxx
> >
> > Any other idea ?
>
> Ahhh...  It help when you provide the details.
>
> RewriteEngine On
> RewriteCond $QUERY_STRING (.*)
> RewriteRule ^/HELP/login.php /%1/HELP/login.php
>
> Where %1 is a back-reference to the RewriteCond match.
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> 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
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message