Ok, i fixed it.
the right code (works well without errors) i used is in the lines below:
where (****) is your item id number
Works very well for me !!! Thank youthe right code (works well without errors) i used is in the lines below:
Code:
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false &&
strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false &&
strpos($_SERVER['QUERY_STRING'], 'action=post2') === false &&
strpos($_SERVER['QUERY_STRING'], 'action=spellcheck') === false &&
strpos($_SERVER['QUERY_STRING'], 'action=splittopics') === false &&
strpos($_SERVER['QUERY_STRING'], 'action=stats') === false)
{
if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=(****)&".$_SERVER['QUERY_STRING']); }
}
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false &&
strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false &&
strpos($_SERVER['QUERY_STRING'], 'action=post2') === false &&
strpos($_SERVER['QUERY_STRING'], 'action=spellcheck') === false &&
strpos($_SERVER['QUERY_STRING'], 'action=splittopics') === false &&
strpos($_SERVER['QUERY_STRING'], 'action=stats') === false)
{
if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=(****)&".$_SERVER['QUERY_STRING']); }
}
where (****) is your item id number
Forum 







