httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Eden <>
Subject [users@httpd] mod_rewrite and forms
Date Thu, 03 Mar 2005 15:24:04 GMT

I use mod_rewrite to provide simpler URLs for my database-driven site. My document root's
.htaccess contains the following line (among others):

RewriteRule pages/([0-9]+) cgi-bin/$1

It works fine.

But some of my pages are password-protected. For these pages, displays a form where
username and password can be entered. The form calls the script itself:

    qq{<p>Benutzer<br />}, $q->textfield("user_name"), "</p>",
    qq{<p>Passwort:<br />}, $q->password_field("user_password"), "</p>",
    $q->hidden("id", "$id"),

If the username/password are entered correctly, is called again with three parameters
(id, username and password), and the protected page is displayed

Unfortunately, when sending the form, the browser's address bar changes from


The page itself is displayed correctly.

But why is the query string added? When I change the form's method to get, I get

as you would expect.

Why is the "id=1234" part still added when using POST?


There are 10 kinds of people:  those who understand binary, and those who don't

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