WordPress.org

Ready to get started?Download WordPress

Forums

Multilingual Press
[resolved] How to redirect the homepage to the primary language startpage??? (4 posts)

  1. stefacht
    Member
    Posted 1 year ago #

    Hi,
    I need your help, it's very urgent as I try to launch the website at the moment:

    I have created http://www.mydomain.com/de for the German version and http://www.mydomain.com/en for the English version. They have ID 2 and 3.
    ID 1 I left as it was and deactivated it.
    But now I want to show http://www.mydomain.com/de if you open http://www.mydomain.com.

    How can I achieve that?
    How to configure wp-config.php correctly?
    If I change PATH_CURRENT_SITE from / to /de/ it works first, but afterwards my links to the /en pages don't work any more.

    /* enable multisite */
    define('WP_ALLOW_MULTISITE', true);
    
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'www.gussenbauer.at' );
    define( 'PATH_CURRENT_SITE', '/de/' );
    define( 'SITE_ID_CURRENT_SITE', 2 );
    define( 'BLOG_ID_CURRENT_SITE', 2 );

    Please help me!
    stef

    http://wordpress.org/extend/plugins/multilingual-press/

  2. stefacht
    Member
    Posted 1 year ago #

    Ok, I managed the redirect by
    1) leaving the path as it was originally:
    define( 'PATH_CURRENT_SITE', '/' );
    and 2) adding the following line to my .htaccess:
    Redirect /index.html http://www.mydomain.com/de/

    Now it works.
    But the 404 error page for wrong URLs outside /de or /en are still a problem, e.g. http://www.mydomain.com/xyz shows an error page in default wordpress layout...

  3. Robert Windisch
    Member
    Plugin Author

    Posted 1 year ago #

    Hi stefacht,

    you should add an theme to the blog 1 which will redirect all requests to the german blog.

    regards,
    Robert

  4. stefacht
    Member
    Posted 1 year ago #

    Hi Robert (and everyone else reading this),

    I'm again having troubles with this issue.
    Seems that my permanent redirect solution in the .htaccess file is not a good solution from the SEO point of view. (Google Webmaster Tools shows a problem because I'm redirecting within the same domain.)

    Robert, could you please explain more detailed what you mean by that answer? How should that special theme be made?

    Is there no built-in solution for that problem in multilingual press?

    Regards
    Stef

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.