httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz Handke <>
Subject Re: [users@httpd] rewrite rule
Date Thu, 25 May 2006 00:03:42 GMT
Thanks, I modified your proposition as follows:

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

and rule works ok, but produced result (two frames: top one containing 
original file, and bottom one used for some statistics generation and so 
on) does not display original file, you can check this link: how the result looks like, I 
tried NS option without success

if I stop rewrite engine "result" shows page properly, similar to that:

any help very much appreciated?

Krist van Besien wrote:
> On 5/22/06, Mariusz Handke <> wrote:
>> Hi,
>> Can anyone help me to create, or explain how to get around with rewrite
>> rules, please. The thing to do is:
>> in: http://host/dir/file
>> out: http://host/script.php?p=/dir/file
> RewriteRule ^(.*)$        /script.php?p=$1
> Krist

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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message