/ Published in: PHP
This is a simple but powerful tweak to the wp-config.php file that will make it easy to run multiple websites using one database and codebase. Simply change "yourdomain.com" with your domain and that's it. Repeat that line for new domains.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// You can have multiple installations in one database if you give each a unique prefix // auto database name $domain_list["yourdomain.com"] = "";\ { $table_prefix = $domain_list[$domain_name]; } else { }