• hello,
    I’m working in my new website, but I’m with a small problem.

    I have two domains, the vortexstudios.com.br and vortexstudios.com, and I like something like this, when I use the .com.br domais show the site in portuguese when I use the .com domain, show in english.

    yes, I know, to .com domain send to the english translation and .com.br to the portuguese I’ll need a small hack in the source (or develop a plugin to work with qTranslator).

    I’m with WP 3.2.1 in my server with qTranslator plugin (I like this one, easy to use), but the problem is, when I use the vortexstudios.com the WP redirect me to vortexstudios.com.br, there any way to configure WP to work with more than one domain?!

    I found in WP documentation about add these lines inside wp-config.php, but, it didn’t work…

    define( 'WP_SITEURL','http://'.$_SERVER['SERVER_NAME'] );
    define( 'WP_HOME','http://'.$_SERVER['SERVER_NAME'] );

    I don’t know if this thing is obsolete or there another way in WP321…

    all the best!
    alexandre 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter TheMonkeyTail

    (@themonkeytail)

    I found the problem, this code just work in single site only… but I’m using multisite…

    so, first problem “solved”, I’m not using the multisite feature yet, but I’ll use someday…

    now I need to know how can I do that with multisite enabled :-\

    Thread Starter TheMonkeyTail

    (@themonkeytail)

    done with single site 😀 YEY!
    here the code, to test I did everything inside wp-config.php 🙂

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Now, just put these lines in the final of the file to force the qTranslate language.

    $q_config['language'] = $currentLanguage;
    $q_config['default_language'] = $currentLanguage;

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘multi-domain’ is closed to new replies.