Fixing 404 on Admin Page

I got a 404 on the admin page at example.com/admin/login/, but not at example.com/index.php/admin/login/. Went through the .htaccess and found that /$1 got deleted from the `RewriteRule`