Herpes simplex viruses (HSVs) are significant pathogens and major targets of vaccine development. Several attempts have been made to develop prophylactic and therapeutic vaccines for HSV types 1 and 2. Although these vaccines elicit strong humoral responses, the overall impact on pathology has been disappointing. An effective vaccine for HSV must induce both humoral and cellular immune responses. DNA vaccines are ideal candidates for HSV vaccines because they induce both types of immune responses. This study showed that the type of immune response generated by immunization with DNA vaccines is modulated by expression of various forms of an antigen, each with a different cellular localization. Expression of cell-associated forms of HSV-2 glycoprotein D (gD) induces primarily a Th1 response, whereas expression of secreted gD results in a Th2 response. Immunization with plasmids expressing different forms of the antigen may increase the efficacy of a vaccine.