httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jurgen <apa...@squarehosting.com>
Subject Re: [users@httpd] mod_rewrite: rewrite URLs with parameter
Date Sat, 19 Jul 2003 23:01:03 GMT
Hi,

you will have to use the query string variable. I think it is %{QUERY_STRING}

Jurgen


On Sat, 19 Jul 2003 22:17:36 +0200
"Christian Weiske" <cweiske@cweiske.de> wrote:

> Hi
> 
> I'm trying to rewrite URLs from .htm to .php, including the parameter
> like "?param=value".
> 
> State:
> I've got the urls "/birthday.htm", "/php_gtk.htm" and so on.
> They are all rewritten to "/index.php?page={htm_page_name}"
> 
> Now the problem is, if I call a page like "/birthday.htm?order=desc", it
> is rewritten to
> "/index.php?page=birthday.htm". 
> I'd like it to have it rewritten to
> "/index.php?page=birthday.htm&order=desc".
> 
> The problem is, that the parameters are not included in the url which
> can be rewritten in the .htacces by mod_rewrite.
> 
> 
> Do you know a solution?
> 
> 
> Thanks in advance,
> 
> Christian Weiske
> <<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
>       Christian Weiske
>      cweiske@cweiske.de
>        www.cweiske.de
> <<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
> Always forgetting birthdays? Try birthday reminder!
> http://www.cweiske.de/birthday.htm
> Free & fast ecards: http://ecards.cweiske.de
> 
> 
> ---------------------------------------------------------------------
> 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

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