Skip to content

Instantly share code, notes, and snippets.

@gokusenz
Created August 5, 2018 18:20
Show Gist options
  • Save gokusenz/66e23b1a081174e0b69c13da9b2b1e59 to your computer and use it in GitHub Desktop.
Save gokusenz/66e23b1a081174e0b69c13da9b2b1e59 to your computer and use it in GitHub Desktop.
WordPress, nginx proxy and subdirectory: wp-login.php redirects to domain
$_SERVER['REQUEST_URI'] = str_replace("/wp-admin/", "/blog/wp-admin/", $_SERVER['REQUEST_URI']);
# https://stackoverflow.com/questions/34090577/wordpress-nginx-proxy-and-subdirectory-wp-login-php-redirects-to-domain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment