Welcome Guest, Not a member yet? Register   Sign In
How to have several sites use the same code
#11

[eluser]bramb79[/eluser]
If you are already stuck with the directories, copying the index.php is probably your best bet.

As for the problems:
You can make your code conditional (by detecting the domain url) and load either specific config files (you can add your own config files and overwrite certain config variables) or stick with the standard config files (and just make certain variables conditional (like your base_url).

Redirecting to the right controller can best be done in the routing file (see clooner's post).
#12

[eluser]Andreas Krohn[/eluser]
I will try that (as soon as my DNS changes are propagated, so I guess in a few days), thanks.




Theme © iAndrew 2016 - Forum software by © MyBB