Создал такой .htaccess
RewriteEngine on
RewriteBase /
#domain.com/mode/id/
RewriteRule ^(\w+)/([0-9]+)/{0,1}$ /index.php?mode=$1&id=$2 [L]
Deny from all
ErrorDocument 403 /index.php?error=404
ErrorDocument 404 /index.php?error=404
Теперь вообще все запрещено оказалось.