| 1. How can I redirect the standalone SMF url to the wrapped forum? For example: SMF standalone site: http://www.mysite.com/smf/ redirect to Joomla-SMF wrapped: http://www.mysite.com/component/option,com_smf/Itemid,50/ Answer: Put the following code in the beginning of smf's index.php: define('WIRELESS2', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode'])); if (!WIRELESS2 && ($_SERVER['REQUEST_URI'] == "/smf/" || $_SERVER['REQUEST_URI'] == "/smf/index.php")) { header( 'Location: http://www.mysite.com/component/option,com_smf/Itemid,94/' ); exit(); } |
Forum 





Author




Logged





