If you search "mount", it returns a list of search results. Now search for "1095", it gives an error message...
Any idea?
Thanks!
Moderator: Thorsten
Code: Select all
if (is_numeric($begriff) && ($begriff > PMF_SOLUTION_ID_START_VALUE) && ($num > 0)) {
if (isset($PMF_CONF['mod_rewrite']) && $PMF_CONF['mod_rewrite'] == 'TRUE') {
header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'/solution_id_'.$begriff.'.html');
} else {
header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'?solution_id='.$begriff);
}
exit();
}Code: Select all
if (is_numeric($begriff) && ($begriff > PMF_SOLUTION_ID_START_VALUE) && ($num > 0)) {
if (isset($PMF_CONF['mod_rewrite']) && $PMF_CONF['mod_rewrite'] == 'TRUE') {
header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'solution_id_'.$begriff.'.html');
} else {
header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'?solution_id='.$begriff);
}
exit();
}It's seems it is using the real hostname and not the virtual host name; try this code below:calande wrote:Thank you Matteo, now it works better, at least it doesn't return an error message but it changes the URL
Any idea to avoid this?
Code: Select all
if (is_numeric($begriff) && ($begriff > PMF_SOLUTION_ID_START_VALUE) && ($num > 0)) {
if (isset($PMF_CONF['mod_rewrite']) && $PMF_CONF['mod_rewrite'] == 'TRUE') {
header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']).'solution_id_'.$begriff.'.html');
} else {
header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']).'?solution_id='.$begriff);
}
exit();
}there is nothing in your FreeBSDcalande wrote:More info on the server here: http://example.nfshost.com/phpinfo.php
Code: Select all
if (is_numeric($begriff) && ($begriff > PMF_SOLUTION_ID_START_VALUE) && ($num > 0)) {
if (isset($PMF_CONF['mod_rewrite']) && $PMF_CONF['mod_rewrite'] == 'TRUE') {
header('Location: http://'.$_SERVER['HTTP_HOST'].str_replace ('/index.php', '', $_SERVER['PHP_SELF']).'/solution_id_'.$begriff.'.html');
} else {
header('Location: http://'.$_SERVER['HTTP_HOST'].str_replace ('/index.php', '', $_SERVER['PHP_SELF']).'/index.php?solution_id='.$begriff);
}
exit();
}