RewriteEngine On RewriteRule ^www_(basic|digest(qop|sess)?(bis)?)([0-9]+)\.php$ www_$1.php [QSA,L]
info at phpclasses dot org