Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

Re: [users@httpd] Rewrite ?

Martin Barry

2008-06-09

Replies: Find Java Web Hosting

Author LoginPost Reply
$quoted_author = "Emil Edeholt" ;
>
> I want url:s like site.com/page/subpage/some=data and I also need urls
> like site.com/foo/bar/?some=data to function on my site. The first kind
> works fine. But I can't get the question mark-kind to work.

The second type is handled by Apache as HOST/PATH?QUERY_STRING and hence you
need to specifically match on QUERY_STRING.

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

...and read the bits "What is matched?" and "Modifying the Query String"

cheers
marty

--
"It might have been the time we went for a pub lunch. He ordered food, and I
ordered a beer. After sitting down, He asked me what I was having for lunch
and I raised my glass. He protested I couldn't just have a beer for lunch,
so I went back to the bar and got a second beer." --Peter Corlett

alt.sysadmin.recovery - <egvs8m$r8b$1@(protected)>

---------------------------------------------------------------------
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@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.