CP keep redirecting to the old page
-
Hi!
I had to reinstall my Xampp server because of an incompatibily problem with the site i am using.
The old redirection uri was http://192.168.5.8/, the new one is http://192.168.5.8/x/ but for some reason i am still getting redirected to the original address, where instead of my site, i am directed to Xampp(Apache).
I updated C\Windows\System32\Drivers\Etc\Host with the new address,
same for C\Xampp\Htdocs\x\inc\Header.inc.php,
what i am doing wrong?
I think it might depends either from the CP or maybe it's Xammp which is "appropriating" to itself too many addresses
Thanks for any inputsEdit:
It must to be the captive portal, because i just tryied to input directly that address from another device over the wi-fi and it just goes there, is the CP unable to redirect to a subfolder (…/x) ??? I hope i don't have to reinstall again my entire site to the main Xammp folder :-[ -
Ok this problem has been fixed.
Was not depending from the CP but from my Xampp/Apache configuration.
On the 'index.php' inside \xampp\htdocs i had to change the word "xampp" with the folder's name of where my local site is located (and to where my CP is pointing to).if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/xampp/');
exit;
?>