Thanks, I modified your proposition as follows:
<Location /test>
RewriteEngine On
RewriteRule ^(.*)/([^/]*\.)(html|htm|php)$
/test-redir.php?page=/test/$2$3 [L]
</Location>
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:
http://alice.oiram.net/test/index.html how the result looks like, I
tried NS option without success
if I stop rewrite engine "result" shows page properly, similar to that:
http://alice.oiram.net/test-noredir.php
any help very much appreciated?
Krist van Besien wrote:
On 5/22/06, Mariusz Handke <[EMAIL PROTECTED]> 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
--
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]