Hi,
I've placed this code on index.php of the SMF forum to avoid direct access to the forum:
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false)
{
if(!defined('_VALID_MOS')){ header("Location: http://www.it-info.org/forum/overview.html".$_SERVER['QUERY_STRING']);}}
But than, the Preview Post function stops working.

Can someone please help me here?
Thank you,
R Nunes