httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <>
Subject Re: [users@httpd] rewrite rule
Date Mon, 29 May 2006 07:30:14 GMT
On 5/26/06, Mariusz Handke <> wrote:
> Thanks for suggestion, that's what I will do, but I still think there
> should be other way to do it, within apache scope.
> Krist van Besien wrote:
> >
> > You need to do this differently. The way I would do this is change my
> > php script so it includes the different pages in one page, in stead of
> > a frameset. But this is outside the scope of this list.

You could probably do something with the referrer header.

For example:

<Location /test>
           RewriteEngine       On
           RewriteCond        %{HTTP_REFERRER}  !$2$3
           RewriteRule         ^(.*)/([^/]*\.)(html|htm|php)$
/test-redir.php?page=/test/$2$3 [L]


Solothurn, Switzerland

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message