Redirecting to DEFAULT_LANG if no content
Posted: Wed Oct 01, 2008 2:21 pm
Hey!
I have the latest version of MLE installed.
I followed your instructions here to redirect to the DEFAULT_LANG if the page content does not exist for a language:
http://forum.cmsmadesimple.org/index.ph ... l#msg99796
My default language is en_US. If French content for a page is empty, I want redirect to the DEFAULT_LANG (en_US) page /index.php?page=our-services&hl=en_US page.
The problem: the redirect does not work. The URL does not change to en_US, but remains as /index.php?page=our-services&hl=fr_FR.
On the French page, the en_US content is displayed, but I do not want that. I want the browser to redirect to the /index.php?page=our-services&hl=en_US page.
Any ideas on how to do that?
Thank you!
Simon
I have the latest version of MLE installed.
I followed your instructions here to redirect to the DEFAULT_LANG if the page content does not exist for a language:
http://forum.cmsmadesimple.org/index.ph ... l#msg99796
My default language is en_US. If French content for a page is empty, I want redirect to the DEFAULT_LANG (en_US) page /index.php?page=our-services&hl=en_US page.
The problem: the redirect does not work. The URL does not change to en_US, but remains as /index.php?page=our-services&hl=fr_FR.
On the French page, the en_US content is displayed, but I do not want that. I want the browser to redirect to the /index.php?page=our-services&hl=en_US page.
Any ideas on how to do that?
Thank you!
Simon