Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created July 1, 2013 19:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claudiosanches/5903800 to your computer and use it in GitHub Desktop.
Save claudiosanches/5903800 to your computer and use it in GitHub Desktop.
Django-CMS - Correção da URL do pt-br
rewrite ^/?pt\-BR/(.*)$ /pt-br/$1 permanent;
rewrite ^/?pt\_BR/(.*)$ /pt-br/$1 permanent;
RewriteEngine on
RewriteRule ^/?pt\-BR/(.*)$ /pt-br/$1 [R=301,L]
RewriteRule ^/?pt\_BR/(.*)$ /pt-br/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment