[wp-hackers] 2 URLs 1 WordPress install

Brian Layman Brian at TheCodeCave.com
Fri Jul 28 06:43:56 GMT 2006


Francis Reyes Sent: 
> <?php
>
require_once('/etc/wordpress/config-'.strtolower($_SERVER['HTTP_HOST']).
'.php');
> define('ABSPATH', '/usr/share/wordpress/');
> require_once(ABSPATH.'wp-settings.php');
> ?>
> where config-host.php contains database information for each  
> individual blog.
I tried to say this earlier Francis, but my SMTP server was down:
This is an elegant solution.  Well done.



More information about the wp-hackers mailing list