httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sascha Kersken" ...@lingoworld.de>
Subject Re: [users@httpd] RewriteEngine
Date Sat, 05 May 2007 09:43:13 GMT
Hi,

why don't you have your PHP script ViewOffer.php do the redirection? Like:
<?php

if (!isset($_REQUEST['id'])) {
  header ("Location: Offers.php");
}

Regards
Sascha

----- Original Message ----- 
From: "Davi Leal" <davi@leals.com>
To: <users@httpd.apache.org>
Sent: Saturday, May 05, 2007 11:04 AM
Subject: [users@httpd] RewriteEngine


> Hi,
>
> How to do this:
>
>    RewriteRule ^/offers?id=(.*) /ViewOffer.php?OfferId=$1
>    RewriteRule ^/offers(.*)     /Offers.php$1
>
>
> That is to say:
>  if "id=" is present  go to  ViewOffer.php
>  else                 go to  Offers.php
>
>
> Best regards,
> Davi
>
> ---------------------------------------------------------------------
> 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