Welcome! Log In Create A New Profile

Advanced

Re: How to check a request is subrequest or not?

July 20, 2010 09:22PM
As there are two variables in http core module:

$request_uri
This variable is equal to the *original* request URI as received from the client including the args. It cannot be modified. Look at $uri for the post-rewrite/altered URI.

$uri
This variable is equal to current URI in the request (without arguments, those are in $args.) It can differ from $request_uri which is what is sent by the browser. Examples of how it can be modified are internal redirects, or with the use of index.

They are different at subrequest or internal redirects, but it is impossible to define is subrequest or not at server{} part ?

Can I compare some variables to do so?
Subject Author Posted

How to check a request is subrequest or not?

elmo1349 July 20, 2010 11:09AM

Re: How to check a request is subrequest or not?

elmo1349 July 20, 2010 11:24AM

Re: How to check a request is subrequest or not?

Piotr Sikora July 20, 2010 02:52PM

Re: How to check a request is subrequest or not?

elmo1349 July 20, 2010 08:41PM

Re: How to check a request is subrequest or not?

Piotr Sikora July 20, 2010 09:04PM

Re: How to check a request is subrequest or not?

elmo1349 July 20, 2010 09:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 237
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready