<IfModule mod_rewrite.c> RewriteEngine On RewriteRule^([0-9]+)/([A-z0-9]+)/([A-z0-9\.\_\-]+)attachments.php?post=$1&md5=$2&name=$3 [L,QSA] </IfModule>