Added support for apache mod_rewrite.
Updated virtual hosts to use mod_rewrite module.