Best practice forum (Archived)

This forum discussion has been removed

 
Simon Coggins
Re: Trouble loggin in after cloning system
by Simon Coggins - Thursday, 8 March 2012, 7:36 PM
Group Totara

I guess the best approach would be to store a placeholder in the database, something like '[[SITE_WWWROOT]]' then substitute it with the actual value after retrieving the database data but before displaying it.

The problem is that would need to be done anywhere that saves a site url in the database, which could include a whole lot of third party modules outside of our control. In principle though, that would make the database more portable.

Simon