now i have solved my problem.
thank you for your patience!
The problem was that the forwarding must of course be directed to the index.php with the name of the static page.
function custom_rewrite_rule() {
#add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','url/to/my/script.php?food=$1&variety=$2','top');
add_rewrite_rule( '^stellenanzeige\/([^/]*)\/([^/]*)\/?', 'index.php?pagename=stellenanzeige&jobid=$matches[2]', 'top' );
}
add_action('init', 'custom_rewrite_rule', 10, 0);
add_filter( 'query_vars', function( $query_vars ) {
$query_vars[] = 'jobid';
return $query_vars;
} );
Hi bcworkz,
thank you for your answer, yes my regexp is very low, but the regexp in my case are worke fine: https://regexr.com/5lrlv
My problem is: Wordpres thinks i want surf to a other Site… i got the error 404…
How can i say to my wordpress installation i want a Site domain.com/example and ignores the rest of the URL… also domain.com/example/BLAH/BLUB <— wordpress looks 4 a Site example -> BLAH -> BLUB….
i hope you understand me….