5
Quote:
petitours wrote:
Hi
When I use the link
http://www.test.68hc08.net/modules/smartfaq/submit.php?op=add
I get an error "could not findhttp://www.test.68hc08.netfaq/submit/"
when I use the link
http://www.test.68hc08.net/faq/submit
I get a 404 Not found error
Now you can try onhttp://www.test.68hc08.net , all visitors can submit now.
thank you
you will need to edit two files. submit.php and request.php
in submit.php look for htaccess.(its near line 228)
then change the line below that says $url.. so it looks like
$url = XOOPS_URL . '/'. $GLOBALS['xoopsModuleConfig']['baseurl'] . '/submit/';
if ($GLOBALS['xoopsModuleConfig']['htaccess']) {
$url = XOOPS_URL . '/'. $GLOBALS['xoopsModuleConfig']['baseurl'] . '/submit/';
if (!strpos($url, $_SERVER['REQUEST_URI'])) {
header( "HTTP/1.1 301 Moved Permanently" );
header('Location: '.$url);
exit(0);
}
}
in request.php do the same. now it looks like
if ($GLOBALS['xoopsModuleConfig']['htaccess']) {
$url = XOOPS_URL . '/' . $GLOBALS['xoopsModuleConfig']['baseurl'] . '/request/';
if (!strpos($url, $_SERVER['REQUEST_URI'])) {
header( "HTTP/1.1 301 Moved Permanently" );
header('Location: '.$url);
exit(0);
}
}
both of those were missing a /
CBB / LatestNews / Publisher / XM-Spotlight
(ノ◕ヮ◕)ノ*:・゚✧