Skip to content

Instantly share code, notes, and snippets.

@shadowmaru
Created February 19, 2010 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadowmaru/309131 to your computer and use it in GitHub Desktop.
Save shadowmaru/309131 to your computer and use it in GitHub Desktop.
location /atendimento.php {
rewrite /atendimento.php http://www.smartfit.com.br/atendimento permanent;
}
location /franquias.php {
rewrite /franquias.php http://www.smartfit.com.br/franchises/new permanent;
}
location /unidades.php {
rewrite /unidades.php http://www.smartfit.com.br/unidades permanent;
}
location /a-smartfit.php {
if ($args ~ idUnidade=1) {
rewrite ^ http://www.smartfit.com.br/unidades/brasilia? permanent;
}
if ($args ~ idUnidade=2) {
rewrite ^ http://www.smartfit.com.br/unidades/morumbi? permanent;
}
if ($args ~ idUnidade=3) {
rewrite ^ http://www.smartfit.com.br/unidades/porto-alegre? permanent;
}
if ($args ~ idUnidade=4) {
rewrite ^ http://www.smartfit.com.br/unidades/copacabana-i? permanent;
}
if ($args ~ idUnidade=5) {
rewrite ^ http://www.smartfit.com.br/unidades/copacabana-ii? permanent;
}
if ($args ~ idUnidade=6) {
rewrite ^ http://www.smartfit.com.br/unidades/botafogo? permanent;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment