Welcome! Log In Create A New Profile

Advanced

Re: canonicalization of $uri with "/?.*" content

Francis Daly
April 17, 2015 03:16AM
On Thu, Apr 16, 2015 at 10:13:33AM -0400, 173279834462 wrote:

Hi there,

> canonical:
> http://example.com/
>
> unwanted variants:
> http://example.com/?mod=node&nid=some_thing&op=view
> http://example.com/?Open
> http://example.com/?OpenServer
> ...
>
> Is there an nginx parameter to normalize this type of $uri?

When I request http://example.com/?Open, what response do you want to
send me?

Does

==
location = / {
if ($is_args) { return 301 /; }
}
==

cause your right thing to happen?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

canonicalization of $uri with "/?.*" content

173279834462 April 16, 2015 10:13AM

Re: canonicalization of $uri with "/?.*" content

Francis Daly April 17, 2015 03:16AM

Re: canonicalization of $uri with "/?.*" content

173279834462 April 17, 2015 09:10AM

Re: canonicalization of $uri with "/?.*" content

Francis Daly April 18, 2015 04:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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