Skip to content

Commit

Permalink
Refine redirects. /de/?(.*) redirected /develdoc.png as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gjanssens committed Feb 21, 2014
1 parent 81bfba9 commit 0e16e8d
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .htaccess
Expand Up @@ -52,16 +52,17 @@ RedirectMatch permanent /screenshots.phtml(.*) /features.phtml$1

# Non-English versions of the site used to be accessed via
# a language path specifier. This now uses a get variable.
RedirectMatch permanent /de/?(.*) /$1?lang=de_DE
RedirectMatch permanent /es/?(.*) /$1?lang=es_ES
RedirectMatch permanent /en/?(.*) /$1?lang=en_US
RedirectMatch permanent /fr/?(.*) /$1?lang=fr_FR
RedirectMatch permanent /hu/?(.*) /$1?lang=hu_HU
RedirectMatch permanent /it/?(.*) /$1?lang=it_IT
RedirectMatch permanent /ja/?(.*) /$1?lang=ja_JP
RedirectMatch permanent /nb/?(.*) /$1?lang=nb_NB
RedirectMatch permanent /nl/?(.*) /$1?lang=nl_NL
RedirectMatch permanent /pl/?(.*) /$1?lang=pl_PL
RedirectMatch permanent /pt_PT/?(.*) /$1?lang=pt_PT
RedirectMatch permanent /zh_CN/?(.*) /$1?lang=zh_CN
RedirectMatch permanent /zh_TW/?(.*) /$1?lang=zh_TW
RedirectMatch permanent /de/(.*) /$1?lang=de_DE
RedirectMatch permanent /de /?lang=de_DE
RedirectMatch permanent /es/(.*) /$1?lang=es_ES
RedirectMatch permanent /en/(.*) /$1?lang=en_US
RedirectMatch permanent /fr/(.*) /$1?lang=fr_FR
RedirectMatch permanent /hu/(.*) /$1?lang=hu_HU
RedirectMatch permanent /it/(.*) /$1?lang=it_IT
RedirectMatch permanent /ja/(.*) /$1?lang=ja_JP
RedirectMatch permanent /nb/(.*) /$1?lang=nb_NB
RedirectMatch permanent /nl/(.*) /$1?lang=nl_NL
RedirectMatch permanent /pl/(.*) /$1?lang=pl_PL
RedirectMatch permanent /pt_PT/(.*) /$1?lang=pt_PT
RedirectMatch permanent /zh_CN/(.*) /$1?lang=zh_CN
RedirectMatch permanent /zh_TW/(.*) /$1?lang=zh_TW

0 comments on commit 0e16e8d

Please sign in to comment.