Created
December 20, 2013 06:51
-
-
Save khlbrg/8051282 to your computer and use it in GitHub Desktop.
Remove 301 redirect loop on Wordpress on Nginx
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
location / { | |
try_files $uri $uri/ /index.php?q=$uri$is_args&$args; | |
} | |
//in functions.php in theme | |
add_filter( 'got_rewrite', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment