Een vraag die vaak gesteld wordt is “hoe krijg ik meerdere wordpress sites in één database? “. En eigenlijk is het antwoord heel eenvoudig, mits je database het natuurlijk aankan.
Het gaat erom dat de tabellen in je database van de verschillende sites niet hetzelfde mogen zijn. Een tabel in je database is bijvoorbeeld wp-comments. Je ziet hier al het voorvoegsel “wp” staan, dit kun je veranderen in wat je zelf wilt. Om dit te veranderen ga je naar je config.php bestand, hier staat $table_prefix = ‘wp_’; Verander hier de wp in iets anders, bijv: wvm (webvision Media) en voor de andere site gebruik je dan weer een andere voorvoegsel. Nu heb je niet dezelfde tabellen in je database en kun je dus verschillende sites in één database gebruiken.