Closed Bug 650363 Opened 14 years ago Closed 14 years ago

Move locale fudging out of webroot/.htaccess

Categories

(support.mozilla.org :: Code Quality, task, P3)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jsocol, Assigned: jsocol)

Details

(Whiteboard: [drop-htaccess])

Toward the bottom of .htaccess we've got this section: # Redirect locales that point to one locale in SUMO. # Kitsune does this by itself, mostly. # Not sure about this guy: may need to special-case it in the LocaleURLMiddleware. RewriteRule ^n[bn]\-NO/(.+)$ /no/$1 [L,R] # Just need to move sr-CYRL above sr-LATN to get this. RewriteRule ^sr/(.+)$ /sr-CYRL/$1 [L,R] I don't know how accurate my comments are. Maybe adding some kind of "given this non-supported locale, go here" map and using that in LocaleURLMiddleware (we could also use it to handle other not-yet-supported but legit locales). Hopefully I'm right about Serbian.
Assignee: nobody → james
https://github.com/jsocol/kitsune/compare/b2fda76f6^...50f3ea9e To test, verify that /nb-NO/home and /nn-NO/home still go to /no/home, and that /sr/home still goes to /sr-CYRL/home.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
All redirect as expected except the following: /nb-NO/home >> https://support.allizom.org/nb-NO/home
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Oops, I checked settings.py and that's actually correct--nb-NO is in the supported locales list.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Verified, closed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.