Phillip B Oldham
March 26, 2009 04:35AM
Maxim Dounin wrote:
> In 0.7.8+ you may use $arg_* variables for this, e.g.
>
> location /myscript.php {
> rewrite ^ /script/a/$arg_a/b/$arg_b/z/$arg_z? permanent;
> }
>
Ah, perfect!
> Note that this isn't exactly the same thing as the original one
> since it doesn't actually test presence of the arguments.
>
I'd still be able to wrap that rewrite in an if though, to test whether
any of the params are there, wouldn't I?

--

*Phillip B Oldham*
The Activity People
phill@theactivitypeople.co.uk

------------------------------------------------------------------------

*Policies*

This e-mail and its attachments are intended for the above named
recipient(s) only and may be confidential. If they have come to you in
error, please reply to this e-mail and highlight the error. No action
should be taken regarding content, nor must you copy or show them to anyone.

This e-mail has been created in the knowledge that Internet e-mail is
not a 100% secure communications medium, and we have taken steps to
ensure that this e-mail and attachments are free from any virus. We must
advise that in keeping with good computing practice the recipient should
ensure they are completely virus free, and that you understand and
observe the lack of security when e-mailing us.

------------------------------------------------------------------------
Subject Author Posted

Redirect on $args based on multiple params?

Phillip B Oldham March 25, 2009 11:55AM

Re: Redirect on $args based on multiple params?

Igor Sysoev March 25, 2009 11:59AM

Re: Redirect on $args based on multiple params?

Maxim Dounin March 25, 2009 01:58PM

Re: Redirect on $args based on multiple params?

Igor Sysoev March 25, 2009 06:17PM

Re: Redirect on $args based on multiple params?

Maxim Dounin March 26, 2009 06:35AM

Re: Redirect on $args based on multiple params?

Igor Sysoev April 04, 2009 01:54PM

Re: Redirect on $args based on multiple params?

Phillip B Oldham March 26, 2009 04:35AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 287
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