I'm using this redirect after inserting a post. It's not working, it only refreshes the page the form is on. I know the $pid is getting the post ID so what is the problem? This is the very end of my php code for handling the form submission.
$pid = wp_insert_post($new_post); update_post_meta($pid,'domain',$domain); update_post_meta($pid,'keywords',$keywords); wp_redirect( get_permalink($pid) ); exit();
Here is a pastebin of the complete code
Using Better HTTP Redirects it's output is, and it links the word
here to the correct newly published post.
302 Found The document has moved here.