Last active
December 15, 2022 17:24
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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