You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Björn Lindström <bk...@elektrubadur.se> on 2003/11/01 18:06:08 UTC

[users@httpd] Re: POSTing to index.cgi

bkhl@elektrubadur.se (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/home.pl?$1 [QSA,L]

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


---------------------------------------------------------------------
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