Added option to turn off mod_rewrite and pretty URLs