fix html cgi directives