Skip to content

Instantly share code, notes, and snippets.

@soderlind
Last active December 15, 2022 17:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save soderlind/9daade336b141a7e92fcf17e5786db2a to your computer and use it in GitHub Desktop.
Save soderlind/9daade336b141a7e92fcf17e5786db2a to your computer and use it in GitHub Desktop.
NGINX, WordPress Multisite and robots.txt, also tested with WordPress MU Domain Mapping
server {
# Add the following to your default server block:
rewrite /robots\.txt$ /index.php?robots=1 last;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment