[wp-hackers] redirects for /admin

Kirk Wight kwight at kwight.ca
Wed Mar 6 20:42:06 UTC 2013


Ah, so simple; thanks so much.

On 6 March 2013 13:26, Andrew Nacin <wp at andrewnacin.com> wrote:

> On Wed, Mar 6, 2013 at 12:59 PM, Kirk Wight <kwight at kwight.ca> wrote:
>
> > The redirect is happening through a redirect tool on WP Engine, which I
> > thought would be at the server level; I'll dig deeper with them.
> >
> > Still, out of curiosity, what is the best way to filter or remove that
> > x/admin redirect? I'm combing through rewrite.php and filters now.
>
>
> It's in canonical.php.
>
> add_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 );
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list