Apache Rewrite - put parts of query string in replacement string
Posted
by Rangi Robinson
on Stack Overflow
See other posts from Stack Overflow
or by Rangi Robinson
Published on 2010-06-16T12:58:19Z
Indexed on
2010/06/16
13:02 UTC
Read the original article
Hit count: 345
Hello,
I'd like to rewrite:
www.example.com/file.html?username=john&number=1234
To:
www.example.com/users/john
But I can't figure out how to extract the "username" value from the query string. I've been Googling this all morning and reading the official docs but no luck. I need to solve this problem with a rewrite, rather than changing the application.
Any help much appreciated! Rangi
© Stack Overflow or respective owner