Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在wordpress中重定向到另一页_Wordpress - Fatal编程技术网

如何在wordpress中重定向到另一页

如何在wordpress中重定向到另一页,wordpress,Wordpress,我没有任何想法如何重定向我的网页上的另一页后,提交我的联系表格 my code is here <? header('Location: http://astrologerdelhi.co.in/?page_id=119, true, 301'); ?> but it is not working ?. Thanks for your help 我的代码在这里 但它不起作用?。 谢谢你的帮助 您可以尝试wp\u redirect() wp_redirect()不会自动

我没有任何想法如何重定向我的网页上的另一页后,提交我的联系表格

my code is here 


<?
  header('Location: http://astrologerdelhi.co.in/?page_id=119, true, 301');

?>
but it is not working ?.

Thanks for your help
我的代码在这里
但它不起作用?。
谢谢你的帮助

您可以尝试
wp\u redirect()

wp_redirect()不会自动退出,并且几乎总是紧跟着exit

wp_redirect( 'Location: http://astrologerdelhi.co.in/?page_id=119', 301 ); 
exit;