[wp-trac] [WordPress Trac] #18852: Nginx rewrite rules
WordPress Trac
noreply at wordpress.org
Thu Feb 27 17:33:22 UTC 2014
#18852: Nginx rewrite rules
-------------------------------------+-----------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future Release
Component: Rewrite Rules | Version: 3.3
Severity: minor | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------------
Comment (by jeremyfelt):
Replying to [comment:32 rmccue]:
> {{{
> # Add trailing slash to */wp-admin requests.
> rewrite /wp-admin$ $scheme://$host$uri/ permanent;
> }}}
>
> Do we need this? :)
It's good to have and I think I finally figured out why. :)
For unauthenticated users:
* `http://network.com/site1/wp-admin/` results in the proper `redirect_to`
query var
* `http://network.com/site1/wp-admin` drops `site1` from the `redirect_to`
query var
This is more annoying than anything else. Without digging too much, we
currently do `$path = str_replace ( '/wp-admin/', '/', $path );` in 3.8.1
ms-settings. Something similar is done in trunk via #27003.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18852#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list