htaccess Rewrite doesn’t change the URL [duplicate]

I have tried a lot of different rules and conditions, but htaccess just doesn’t seem to work for me. I’m not even sure I understand how it works, please help.

I have a URL that looks like
advertisements/views/user-list.php
I’d like it to look like
advertisements/user-list

How would I achieve this? (this is for a localhost based URL)