This is a discussion on htaccess and URL queries within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all Well, my english sucks, so i will be fast :o) Is it possible to make Apache return the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all
Well, my english sucks, so i will be fast :o) Is it possible to make Apache return the query string of an URL in a ..htaccess ? i.e : I try to get http://myserv.com/mypage.php?myquery=value but the page doesn't exists, in my .htaccess I have : ErrorDocument 404 /errors/badrequest.php I want to pass the query string to the badrequest.php, it's possible ? Thx at all ! -- Gege |
|
|||
|
"Gege" <n0.sp4M-ggb2@free.fr> schreef in bericht
news:Xns967B9DFB9A172gege@212.27.42.71... > Hi all > Well, my english sucks, so i will be fast :o) > Is it possible to make Apache return the query string of an URL in a > .htaccess ? > i.e : > I try to get http://myserv.com/mypage.php?myquery=value but the page > doesn't exists, in my .htaccess I have : > ErrorDocument 404 /errors/badrequest.php > > I want to pass the query string to the badrequest.php, it's possible ? Words are that apache is providing a shipload of parameters prefixed REDIRECT_ http://httpd.apache.org/docs-2.0/custom-error.html to suite your need and those should be available like any other to PHP http://nl3.php.net/manual/en/reserve...riables.server HansH |
|
|||
|
Il y a peu, HansH pensa tres fort :
> Words are that apache is providing a shipload of parameters prefixed > REDIRECT_ http://httpd.apache.org/docs-2.0/custom-error.html to suite > your need and those should be available like any other to PHP > http://nl3.php.net/manual/en/reserve...rved.variables. > server Oh my god ! I didn't see that ... I'm blind ... A very, very big thanks to you HansH ! :) -- @+ Gegeeee |