This is a discussion on Some Help With QUERY_STRING? within the Linux Web Servers forums, part of the Web Server and Related Forums category; I have been trying, in vain, to take something like http://www.helloworld.com/?browse=/Earth to http://www.helloworld....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have been trying, in vain, to take something like
http://www.helloworld.com/?browse=/Earth to http://www.helloworld.com/images/ind...?browse=/Earth Notice the slash in "/$browse". How do I do it? Thank! maria |
|
|||
|
maria wrote:
> I have been trying, in vain, to take something like > > http://www.helloworld.com/?browse=/Earth > > to > > http://www.helloworld.com/images/ind...?browse=/Earth > > Notice the slash in "/$browse". > > How do I do it? > > Thank! > > maria Something along these lines (untested): RewriteEngine on RewriteCondition %{QUERY_STRING} ^browse=(.*)$ RewriteRule ^/$ /images/index.php?browse=%1 [R=permanent,L] It's not clear to me if you want a redirect or just handle this internally to the web server. In the latter case, you would rewrite to the internal location of the script and drop the flags. Jim |
| Thread Tools | |
| Display Modes | |
|
|