httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz Handke <oi...@oiram.net>
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]
</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 <oiram@oiram.net> 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: 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