Fix URL checking if no RewriteEngine On in Apache mod_rewrite