I discovered that the main problem involves absolute paths for archives and such.
If there was a way to make them dynamic or if the theme could depend on the wp-config file only, it would make this possible.
BTW, the reason I want to do this is to have two versions of my website but sharing the same content.
Here’s hoping someone has come up with a plugin or some simple hack…