<div dir="ltr">Hello,<div><br></div><div>I&#39;m trying to setup my site to work with another system that will link back to the site with a special url depending on the language of the user.</div><div><br></div><div>I will be getting links in this format: <a href="http://www.mydomain.com/country-code-in-2-char/popup">www.mydomain.com/country-code-in-2-char/popup</a></div>
<div><br></div><div>some of these pages will have a translated versions in the drupal site:</div><div><br></div><div><a href="http://www.mydomain.com/fr/popup">www.mydomain.com/fr/popup</a> will lead to the french page, but some won&#39;t.</div>
<div><br></div><div>this works fine if the country code is enabled, but if it isn&#39;t it leads to a 404.</div><div><br></div><div>any way to create some kind of rule to check if the country code is active/enabled if not trim it out or redirect to the default language?</div>
<div><br></div><div>I can enable all the languages the come with drupal but I don&#39;t think that&#39;s the best solution...</div><div><br></div><div>this is drupal 7 btw.</div><div><br></div><div>Thanks</div><div><br></div>
<div>Idan</div></div>