htaccess strip url

Apologies that this doesn’t directly answer your question but If I were you I would use the following structure:

/%post_id%/%location%/%course%/%postname%

Using the id should help to speed up the page load as it reduces the amount of processing that WP needs to do to select the correct page and you still get a nice enough url.