That actually didn't work out for me.
First of all, I didn't see a .htaccess file, even when I set to "show hidden files" - but I did made the changes on index.php file but now when I log in I get this message:
The requested URL /wp-login.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
However, I do see the wp-login.php file, so I don't know what the problem is now. I'm stuck.