RewriteEngine on
RewriteBase /
RewriteCond % !^$  
RewriteRule templates/(.*).(php)$ – [F] 
RewriteRule program/(.*).(php)$ – [F]
ErrorDocument 404 http://localhost/index.php?monxin=index.not_found
