How to disable 404 header on specific WordPress url – SEO
I use this code to redirect specific url to a php file on my custom made Wordpress theme: add_action('wp', function() { if ( trim(parse_url(add_query_arg(array()), PHP_URL_PATH), '/') === 'pagename' ) { include(locate_template('mysciprt.php')); exit(); }}); (I know i can use rewrite rules…