Forum

Thread tagged as: Question, Docs, Runway

404 Error Pages for Multi Lingual Site

I am developing a multilingual site in Perch 3. I am using domain.com for the main language (en) and domain.com/es-mx/ for the Spanish site.

Error pages for domain.com function correctly but I am unable to provide Spanish 404 error pages for domain.com/es-mx/

Can I use PerchSystem::use_error_page(404) here or do I need to do something else - I haven't been able to find any documentation for use_error_page?

Paul Sturrock

Paul Sturrock 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

use_error_page() is only available in Perch Runway.

Sorry, in my haste to post I only said perch 3 and excluded that I am using Runway.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you holding the language preference in a session variable?

For non English sites - yes.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, then you should probably read that back in on your 404 page and branch to display the language you want.

Thank you