Make apache mod_rewrite optional (default: on)

Apache mod_rewrite isn't available on some hosts. Please make it optional!
Patch attached.