httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] mod_rewrite passing arguments in url
Date Tue, 22 Nov 2005 15:21:46 GMT
On 11/22/05, Edu Miralles <> wrote:
> I need to
> rewrite the url with the arguments between "-" onto a normal notation
> to php. As the log says, the rewriting it's ok but after applicate the
> rules, mod_rewrite splits the arguments, and at the end they are gone
>   In this group I have found similar problems, but their workaround has
> not worked
>   example:
>   titi-var1-value1-var2-value2 ---->
> http://myserver/~user/test/titi.php?var1=value1&var2=value2
> my .htaccess:
> RewriteEngine On
> RewriteRule ^(.*)(-.+)-([^-]+)-([^-&]*)([^-]*)\.html $1$2&$3=$4$5\.html
> [N]
> RewriteRule ^(.*)-([^-]+)-([^-]*)(.*)\.html
> http://myserver/~user/test/$1.php?$2=$3$4 [L, QSA]

The RewriteLog looks perfectly normal to me.  Are you sure that you
are correctly checking for the query string in your php script?  It
might help to, at least temporarily, add an "R" to your options to get
an external redirect so you can see what apache is really looking at.


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