This wouldn't work (RewriteCond) since $2 and $3 are not known at this stage of rewriting process yet, but I'm still working on it Krist van Besien wrote:
On 5/26/06, Mariusz Handke <oiram@xxxxxxxxx> 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
-- Regards, Mariusz Handke [MJH1-6BONE, MJH6-RIPE] FWD: 80064 UK Toll Free: +44-870-3403231 --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx