You have a few options but the easiest is to set tge MAGE_RUN_CODE from the .htaccess file.
You can insert this at the bottom of your file, and replace the fr.store.com and de.store.com witht the actual host names and the runcodes with the respective stores run codes.