Added fix for mod_rewrite issues on apache servers