I am attempting to develop a URL shortener and must have any incoming links for domain.com/azAZ09 toward page.php?code=azAZ09 while disregarding any legitimate pages that finish insperl in root and ignore any demands for sub-directory contents

Regrettably, I seem to you need to be stabbing at nighttime. any chance someone could a minimum of point me to some obvious and understandable tutorial or assist me?

nevermind. found a great cheat sheet here

RewriteRule ^([A-Za-z0-9]+)?$ index.php?sc=$1 [L]