قم بتحرير ملف index.php
والبحث عن :
CODE
require_once($module);
واضافة اعلاه هذا الكود :
CODE
$url1 = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$url2 = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$url2 = str_replace('index.php', '', $url2 );
if($url1 == $url2)
{
@header("**: index.php?page=portal");
exit;
}
بحيث لو افترضنا رابط منتداك بهذا الشكل
CODE
https://pbboard.info/forums/index.php
فعندما يتم فتح المنتدى بدون index.php
بهذا الشكل
CODE
https://pbboard.info/forums
يتم فتح المجلة كصفحة رئيسية