So i'm making a pastebin clone, or atleast a personal-version of it, and for the heck of me i can't figure out why this is not working, i'm new to .htaccess and things sort of so i don't get why this isn't working. I have a main index.php file that is where you write the paste, then it saves it to a database, after that redirects you to paste.php?uid=
random unique id, however i want it to go from that to simple /paste/
uid. This is the currently file i have.
RewriteRule /paste/(.*)/$ paste.php?uid=$1