httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Björn Lindström)
Subject [users@httpd] Re: POSTing to index.cgi
Date Sat, 01 Nov 2003 17:06:08 GMT (Björn Lindström) writes:

> I want to have a script (a wiki script, called index.cgi) generate any
> page requested in my public_html directory.
> It works, until I want to change a page, at which point a POST to
> index.cgi is needed. This only works as long as I actually call it
> as ~bkhl/index.cgi

I might add that I have tried to reach the same effect using only
mod_rewrite, with the same bad results. Here is what that looked like:

RewriteEngine On

# If there's no query string, change the page name part into a query.
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^([^/]+)$ /~bkhl/cgi-bin/$1 [QSA,L]

# Otherwise, do a plain redirect.
RewriteRule ^$ /~bkhl/cgi-bin/ [QSA,L]

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