On Tue, 7 Oct 2008, Grant wrote:
>
You don't, just map index.cgi -index.cgi?home. html or something, or
use the fake directory cgi option -- lot's of other ways to do this,
perhaps even RTFM? Lots of examples in there.
I carefully RTFM, but can't find an example like my case.
What is the " fake directory cgi option" ?
(in general I avoid using /cgi-bin or personal /user-bin and tend to use
local CGIs in the same directory as the rest of the pages)
What do you mean by " map index.cgi -index.cgi?home. html" ? If
index.cgi is called without arguments, it already provides a default
argument (inside the script).
But this has nothing to do with my issue :
mod_rewrite correctly rewrites ANY_URL as index.cgi?ANY_U RL (*)
but then it attempts to rewrite index.cgi itself ! I need a way to stop
this loop
(*) as it should be. The effect of the cgi is to display on one hand a
popup with a banner message, on the other to display the requested
ANY_URL page in the main window
--
----------------------------------------------------------------------
nospam@mi.iasf. cnr.it is a newsreading account used by more persons to
avoid unwanted spam. Any mail returning to this address will be rejected.
Users can disclose their e-mail address in the article if they wish so.
On Mon, 6 Oct 2008 17:58:24 +0200, LC wrote:
>Our institute has a set of apache servers. What we want to do is to put
>up a banner with an important announcement,
>up a banner with an important announcement,
>RewriteEngin e on
>Options FollowSymLinks
>RewriteRule ^(.*) /~lucio/temp/temp/index.cgi?$1 [L,NS]
>Options FollowSymLinks
>RewriteRule ^(.*) /~lucio/temp/temp/index.cgi?$1 [L,NS]
>The point is that any url is correctly translated into index.cgi?url
>but then the rewritten url is again submitted to translation.
>>
>I tried to block the loop putting BEFORE the RewriteRule a
>RewriteCond %{REQUEST_URI} !^/\~lucio/temp/temp/index\.cgi
>>
>but that causes an HTTP_FORBIDDEN.
>>
>How can I force mod_rewrite to rewrite ANY URL as index.cgi?URL with the
>exception of index.cgi itself ?
>but then the rewritten url is again submitted to translation.
>>
>I tried to block the loop putting BEFORE the RewriteRule a
>RewriteCond %{REQUEST_URI} !^/\~lucio/temp/temp/index\.cgi
>>
>but that causes an HTTP_FORBIDDEN.
>>
>How can I force mod_rewrite to rewrite ANY URL as index.cgi?URL with the
>exception of index.cgi itself ?
You don't, just map index.cgi -index.cgi?home. html or something, or
use the fake directory cgi option -- lot's of other ways to do this,
perhaps even RTFM? Lots of examples in there.
What is the " fake directory cgi option" ?
(in general I avoid using /cgi-bin or personal /user-bin and tend to use
local CGIs in the same directory as the rest of the pages)
What do you mean by " map index.cgi -index.cgi?home. html" ? If
index.cgi is called without arguments, it already provides a default
argument (inside the script).
But this has nothing to do with my issue :
mod_rewrite correctly rewrites ANY_URL as index.cgi?ANY_U RL (*)
but then it attempts to rewrite index.cgi itself ! I need a way to stop
this loop
(*) as it should be. The effect of the cgi is to display on one hand a
popup with a banner message, on the other to display the requested
ANY_URL page in the main window
--
----------------------------------------------------------------------
nospam@mi.iasf. cnr.it is a newsreading account used by more persons to
avoid unwanted spam. Any mail returning to this address will be rejected.
Users can disclose their e-mail address in the article if they wish so.
Comment