How to construct the mod_rewrite file if I want http://mysite.com/mydir/4357hhdbgd5td7fd77fdghdsfdg0 to http://mysite.com/myfunction.php?what=4357hhdbgd5td7fd77fdghdsfdg0 The red part is a random string that consists of lower case alphabets and numbers only. Thanks!!
A little bit modification based from juust's previous post. RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^mydir/(.*)$ myfunction.php?what=$1 [NC,L] Code (markup):