URI replacement with prefixes added for all tables and tree