On 11/22/05, Edu Miralles <edu_miralles@xxxxxxxxxxx> 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. Joshua. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx