in reply to Using 403 as a redirect

You don't want that. You want
RedirectMatch ^/$ https://www.foo.com/cgi-bin/login.cgi
This is really an Apache question.

Makeshifts last the longest.