htaccess and URL queries

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-20-2005
Gege
 
Posts: n/a
Default htaccess and URL queries

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
  #2 (permalink)  
Old 06-20-2005
HansH
 
Posts: n/a
Default Re: htaccess and URL queries

"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


  #3 (permalink)  
Old 06-20-2005
Gege
 
Posts: n/a
Default Re: htaccess and URL queries

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0