stop locale redirect for pages outside jekyll (i.e. --> /en/wiki)

Thanks to @Bubu and @grote for spotting and reporting this.

refs #104
parent df64f2a5
......@@ -163,11 +163,16 @@ RewriteRule ^repository/browse.*$ /packages/ [L,R=301]
# Wont correctly rewrite:
# /any/path?trailing_param=blah&lang=fr&trailing_param=blah -> /fr/any/path
#
RewriteCond %{REQUEST_URI} !^/archive
RewriteCond %{REQUEST_URI} !^/assets
RewriteCond %{REQUEST_URI} !^/css
RewriteCond %{REQUEST_URI} !^/repo
RewriteCond %{REQUEST_URI} !^/wiki
RewriteCond %{REQUEST_URI} !^/wp-content
RewriteCond %{QUERY_STRING} ^.*lang=(.*)$
RewriteRule ^(.*)$ /%1/$1? [L,R=302]
# ============================================================================== #
# HTTP security headers
......
......@@ -34,6 +34,9 @@ languages: [ "bo", "en", "de", "es", "fr", "tr", "zh_Hans", "zh_Hant" ]
# https://github.com/untra/polyglot/issues/60
default_lang: "_"
exclude_from_localization:
- wp-content
- archive
- assets
- css
- repo
- wiki
- wp-content
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment