I'm having trouble following what you are trying to do and what does and doesn't work at this point. The change to add the url prefix to the file is done in the kfm/config/config.php file. You can probably find it in another site you have it working in.