AFTER SUBMIT 404
-
I have a contact form on a custom post which url is rewrite by the following
function mycustomname_links($post_link, $post = 0) {
if($post->post_type === ‘product’) {
return home_url($post->ID . ‘/’);
}
else{
return home_url($post->ID . ‘/’);
}
}
add_filter(‘post_type_link’, ‘mycustomname_links’, 1, 3);function mycustomname_rewrites_init(){
add_rewrite_rule(‘([0-9]+)?$’, ‘index.php?post_type=product&p=$matches[1]’, ‘top’);}
add_action(‘init’, ‘mycustomname_rewrites_init’);but than i get 404 after submitting the form which gets sent i tried redirect onsubmit but not working
- The topic ‘AFTER SUBMIT 404’ is closed to new replies.