discusses creating two separate blogs which share one database. I have used the solution presented there of using one database with two options tables. I have one blog setup using:
and the other:
The home page for each one works perfectly. The content is the same and the links are all within their respective directories. The /us/ site furthermore works fine–all subsequent pages work.
The /uk/ site, however, doesn’t work. Once you view a page beyond the home page (any page it seems) the links all revert back to the /us/ site.
In the admin site for /uk/ I see:
WordPress address (URI): http://scarabbooks.com/uk/quoteaday
Blog address (URI): http://scarabbooks.com/uk/quoteaday
and in /us/ I see both values as:
so I am a bit puzzled as to why the /uk/ site is not working.
The wp-config files match for each blog and the wp-settings file has one change, for the uk site, that being this line:
$wpdb->options = $table_prefix . ‘ukoptions’;
where in the us site it’s:
$wpdb->options = $table_prefix . ‘options’;
Anyone have any ideas as to what’s going wrong?
I tried to debug it and I added an ‘echo’ to wp-config in the uk blog and the home page shows it, but the subsequent pages do NOT show it. Their url is /uk/, yet the echo doesn’t show up.
- The topic ‘Two Blogs on one DB’ is closed to new replies.