404 and directory issues

My main domain is smile.ws
I have installed yourls in smile.ws/yourls.

As a result, all my shortened urls are smile.ws/yourls/link instead of smile.ws/link

I followed the wiki instructions but that didn’t help.

I looked around and found this plugin called “Swap Short Url” which is supposed to help in these situations. It has slightly different .htaccess recommendation. I followed the instructions correctly and it works, because now the urls are smile.ws/link. But when you click on them, you get a 404 error.

How can I fix this? Thanks!

You need install it on root of website(to smile.ws itself)