WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] subdomains and sub-blogs (4 posts)

  1. horges
    Member
    Posted 8 years ago #

    Hi everybody, I have the following configuration to implement:

    - My blog (in spanish) must be acccesible at http://www.myblog.es

    - The same blog (same look&feel), but with different posts in portugese and in english, accessible at http://www.myblog.es/pt and http://www.myblog.es/uk

    How could I do this? Do I need different instances of wodpress running in distinct databases?

    Thanks in advance.

  2. moshu
    Member
    Posted 8 years ago #

    Tricky question...
    If the "translated" blogs have to appear at different location/subdir (i.e. myblog.es/pt) then yes, you will have to have different installation for them. Basically you'd have 3 WP installs:
    one in the root (for Spanish)
    and two in two different dubfolders: /pt and /en
    However, you don't need different databases: you could have them all in the same database - just having different table prefixes for the different installs. See your config file.

    As a side note: you may want to take a look at the multilingual blogging possibilities.

  3. horges
    Member
    Posted 8 years ago #

    Thanks for your quick answer, Moshu!

    Sorry but I am not sure I understand what you mean by

    'you could have them all in the same database - just having
    different table prefixes for the different installs'

    You mean it could be enough with creating in /wordpress two subdirs /wordpress/pt/ where it is placed the other installation (so I finally will have /wordpress/pt/wodpress)
    and change

    $table_prefix = 'wp_';

    with

    $table_prefix = 'wp_pt_';

    in /wordpress/pt/wordpress/wp-config.php?

  4. moshu
    Member
    Posted 8 years ago #

    1. For the main blog you install the WP files in the root - no "wordpress" directory. You install the files in your public_html or www or httpdocs directory - whatever your server setting is.
    2. The you create a subfolder called "pt" and another "en" and install WP again in those folders.
    3. Yes, just by changing the table prefix, will work. However, I'd recommend not to have two underscores [_] in the name, so, you can have for the main:
    wp_
    and for the English "en_" and for the Portuguese "pt_".

Topic Closed

This topic has been closed to new replies.

About this Topic