Forums

[resolved] 2 wordpress blogs on same server. Some links go to the wrong blog (4 posts)

  1. ambcompte
    Member
    Posted 5 years ago #

    Situation. I have to blogs on the same server.

    First: version 1.5 (havent updated yet) http://www.ambcompte.net (installation on ambcompte.net/wordpress)

    Second: version 2.01 on http://www.ambcompte.net/cuina (installation on ambcompte.net/cuina/wordpress)

    Problem: everything looks okay, but I have some problems on the second blog. Some links go to pages in the first blog or they go to a 404 page. Like "next page" at the end of the blog. Or the pages: archives, about... It is like if the page has the same name as in the first blog, then the link goes to a page in the first blog. If it's not, 404.

    I have no clue what can this be

    PD: excuses for my english :P

  2. Samuel B
    moderator
    Posted 5 years ago #

    With the 2 blogs, do you have different prefixes for the tables? If not, you're going to have this problem and more in the future if using the same database.

    Open the wp-config.php for each blog and look for this line:
    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

    This blog is setup for wp_ to be the prefix (default setting). Only one blog can have this - the other needs a prefix like wp1 or something different.

  3. ambcompte
    Member
    Posted 5 years ago #

    Thanx. Both have the same prefix. I'll try to change 'something' later, see if it works :P

  4. moshu
    Member
    Posted 5 years ago #

    Change it now! That should be the first thing It cannot work with the same prefix!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags