Restored mod_rewrite check to fix Issue #251 identified by @MarcoXoops