Redirect 302 - Status 302 means that the resource is temporarily located somewhere else, and the client/browser should continue requesting the original url. The client/browser should not attempt to request the original location but use the new location from now on. Redirect 301 - Status 301 means that the resource (page) is moved permanently to a new location. Redirect with http 301 redirect vs 302 redirect vs 307 redirect When uri is rewrite to lowercases, we than make another location context that match such uri as lowercase prefix or lowercase regular expression. So, we make our uri to lowercase location as a first location context in our configuration. Search of regular expressions terminates on the first match, and the corresponding configuration is used. We known Nginx Location directive priority and selection algorithm from this article - nginx location manual. Return 307 $scheme://$host$my_uri_to_lowercase # if the path contains uppercase characters # As your first location entry, tell nginx to rewrite your uri,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |