0

我在某些页面中包含此代码:

$_GET['a'] = 'stats2';
include "/var/www/forum/ssi.php";

在主页(www.musite.com)上它的工作正常。但在 www.mysite.com/bigpage/、www.mysite.com/about/ 等其他页面上,ssi.php返回部分论坛页面(很多 css 和 js)。

我该如何解决?

4

2 回答 2

0

我发现了问题。我的版本 IPB 3.1.2,FURL 开启。

FURL 的问题。

ipsRegistry::instance()->init()中有一个调用FURL检查函数。

在退出 init() 函数之前,它会检查 FURL:

/* Have we entered an incorrect FURL that has no match? */
    if ( ipsRegistry::$settings['use_friendly_urls'] AND self::$_noFurlMatch === true )
    {
        self::getClass('output')->showError( 'incorrect_furl', 404, null, null, 404 );
    }
    else if( isset(ipsRegistry::$request['act']) AND ipsRegistry::$request['act'] == 'rssout' )
    {
        self::getClass('output')->showError( 'incorrect_furl', 404, null, null, 404 );
    }

这就是为什么它会出现 404 错误并包含很多论坛 html。

于 2010-08-03T13:53:56.690 回答
0

这与您在应用程序中使用的代码完全相同吗?听起来您链接到相对路径..

于 2010-08-03T13:30:32.910 回答