Using https on limited basis

Tagged:  

I am looking for help in setting up redirection to https on a limited basis.

I have just installed DokuWiki and ProjectPier on my own virtual host. Both installations went well. And in both cases, I set things up to require https for both of these applications.

On further reading, I discovered that DokuWiki suggests "For performance reasons only the login and profile updates [and admin, I should mention] should be forced to HTTPS while all “normal” wiki actions will continue to work on HTTP." And they provide the mod_rewrite code to include in one's .htaccess to implement the redirection.

I have searched these forums and haven't found anything similar. Has anyone already developed the mod_rewrite code for redirecting to the secure server on login, profile updates and admin functions?

TIA

Doug