I need, but dont know how to make, an htaccess file that will send user, when looking for the home page for example, to index.php but not when look for a url like /7fg4/. Adfly, to the best of my knowledge, works like this: you make a link, it stores the shortened link. When the user tries to open the link the htaccess file sends them the contents of another file which reads the url and proceeds accordingly. My website will work almost exactly as adfly does.
Can anyone explain or write an htaccess file that would do this?