I have a website with user accounts like these: http://www.mywebsite.com/username/
I have this .htaccess file:
RewriteRule ^(.*)/ user.php?uid=$1
It is working fine for urls with the /username/, but when users put the URL in the way http://www.mywebsite.com/username
, I get Error 404
I have been trying a lot of RewriteRules, can anyone help me with this?