WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
Redirections problem (3 posts)

  1. nalesnik2009
    Member
    Posted 1 year ago #

    hi,
    how can I make a redirect for lang /en to /en/welcome ? (welcome is a page)

    I tried 404Redirected and also other plugins and I can't.

    Please help

    http://wordpress.org/extend/plugins/qtranslate/

  2. nalesnik2009
    Member
    Posted 1 year ago #

    it's my solution:
    go to qtranslate_core.php and paste thi on line ~140:
    $home = qtrans_parseURL(get_option('home'));
    $redirects = new quick_page_post_reds();

    if(!empty($redirects->quickppr_redirects))
    {
    foreach($redirects->quickppr_redirects as $k => $v)
    {
    if($q_config['url_info']['original_url'] == $home['path'].$k)
    {
    wp_redirect($v);
    exit;
    }
    }
    }

    it's working with Quick Page/Post Redirect Plugin

  3. nalesnik2009
    Member
    Posted 1 year ago #

    sorry, little fix;

    $home = qtrans_parseURL(get_option('home'));
    if(class_exists(quick_page_post_reds))
    {
    $redirects = get_option( 'quickppr_redirects');

    if(!empty($redirects))
    {
    foreach($redirects as $k => $v)
    {
    if($q_config['url_info']['original_url'] == $home['path'].$k)
    {
    wp_redirect($v);
    exit;
    }
    }
    }
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.