Last active
December 12, 2015 12:09
-
-
Save faustman/4770362 to your computer and use it in GitHub Desktop.
Revisions
-
Titar Andrey revised this gist
Feb 12, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,6 @@ server { listen 80; server_name *.domain.com; if ($host ~* ^([a-z0-9-\.]+)\.domain\.com$) { set $subdomain $1; } rewrite ^ http://domain.com/?utm_source=$subdomain&utm_medium=$date_gmt permanent; } -
Titar Andrey revised this gist
Feb 12, 2013 . 2 changed files with 8 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # Redirect http://test.domain.com to http://domain.com/?utm_source=test&utm_medium=423525 server { listen 80; server_name *.domain.com; if ($host ~* ^([a-z0-9-\.]+)\.domain\.com$) { set $domain $1; } rewrite ^ http://domain.com/?utm_source=$domain&utm_medium=$date_gmt permanent; } -
Titar Andrey created this gist
Feb 12, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ server { listen 80; server_name *.domain.com; if ($host ~* ^([a-z0-9-\.]+)\.domain\.com$) { set $domain $1; } rewrite ^ http://domain.com/?utm_source=$domain&utm_medium=$date_gmt permanent; }