Viewing 1 replies (of 1 total)
  • There are specific requirements when using a query parameter in URL’s.

    What you will need to do is break it up into several parameters and string them together in your code.

    URL now is https://example.com?page_id=5&dm=domainnamehere

    (Note: the HTTP:// or HTTPS:// are not required. The www may not be also.)

    $part1 = "www";
    $part2 = $_GET['dm']; //get dm=domainnamehere
    $part3 = "com";
    $my_url = $part1 . "." . $part2 . "." . $part3;
    //example usage below
    wp_redirect($my_url);

Viewing 1 replies (of 1 total)
  • The topic ‘Including URL in $_GET variable value breaks user session’ is closed to new replies.