Last active
August 29, 2015 14:02
-
-
Save ddnode/d99c2fa3bc87ab33090c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| set $boost ""; | |
| set $boost_query "_"; | |
| if ( $request_method = GET ) { | |
| set $boost G; | |
| } | |
| if ($http_cookie !~ "DRUPAL_UID") { | |
| set $boost "${boost}D"; | |
| } | |
| if ($query_string = "") { | |
| set $boost "${boost}Q"; | |
| } | |
| if ( -f $document_root/cache/normal/$host$request_uri$boost_query.html ) { | |
| set $boost "${boost}F"; | |
| } | |
| if ($boost = GDQF){ | |
| rewrite ^.*$ /cache/normal/$host/$request_uri$boost_query.html break; | |
| } | |
| if (!-e $request_filename) { | |
| rewrite ^/(.*)$ /index.php?q=$1 last; | |
| break; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment