I couldn't come up with a better question-title; Sorry! The example will clarify things quickly.
add_rewrite_rule("^podcast/(.*)/time/([\d|\:]+)", "/podcast/$1/?time=$2", "top");
In words: Podcasts jump to the a specific time when the get-var
time is given. This link needs to be more user-friendly, like
The regex works great. When I direct this rule to "test.php?title=$1&time=$2" – everything seems to work as expected.
But redirecting to a wordpress-permalink is not working.
So, how do I get
/podcast/xxx/time/mm:ss directed to
BONUS-QUESTION: Looking at the .htaccess on the server I realized: wordpress can't write permalinks in .htaccess for dynamic content. How does wordpress handle the URLs? I only know the .htaccess-way