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
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
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
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;
}
}
}
}
You must log in to post.