Create short URL with auto 301 redirect
What you’re trying to do, can be achived by simply using the parse_request hook; no need for the custom rewrite rule and tag. So remove this (and you should flush the rewrite rules — just visit the permalink settings page): add_action( ‘init’, ‘vacature_rewrite_rule’ ); function vacature_rewrite_rule() { … } Then use this modified function which … Read more