Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    CP keep redirecting to the old page

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 1 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      EOC2611P
      last edited by

      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 inputs

      Edit:
      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  :-[

      1 Reply Last reply Reply Quote 0
      • E
        EOC2611P
        last edited by

        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;
        ?>

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.