httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] rewrite rule
Date Mon, 29 May 2006 07:30:14 GMT
On 5/26/06, Mariusz Handke <oiram@oiram.net> 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]
</Location>

Krist


-- 
krist.vanbesien@gmail.com
Solothurn, Switzerland

---------------------------------------------------------------------
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