Another multi-lang question

amanda's Avatar

amanda

03 Jul, 2012 08:33 PM

Hopefully last one...

I have my 404 page set up as normal but I need to set up a different 404 page for the different sites. Any way to do this w/ this setup http://buildwithstructure.com/documentation/multi-language_sites/?

  1. Support Staff 2 Posted by Travis Schmeisser on 03 Jul, 2012 08:48 PM

    Travis Schmeisser's Avatar

    I think you would have to do conditionals against the first segments that contain the language code, like "fr" or "en"

  2. 3 Posted by amanda on 04 Jul, 2012 02:24 AM

    amanda's Avatar

    sorry, not sure I follow... should I leave my 404 settings as is in EE? I have Enable Strict URLs set to "No" and specified a template for my 404 page. Should I leave that as is and are you suggesting do something like this in the templates?
    {if no_results} {if segment_1 == "fr"} {redirect="fr/404"} {if:else} {redirect="us/404"} {/if} {/if}

  3. Support Staff 4 Posted by Travis Schmeisser on 04 Jul, 2012 04:19 AM

    Travis Schmeisser's Avatar

    Yes. You could also just display different content instead of redirecting.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.