I'm getting this error when I try to access my php file. It says that the link was not found on the server. I tried echoing the link it returns, I got the correct link and when I try to access it manually, it loads but when I use redirect, I get the error.
This is my code:
<?php
session_start();
$user_id = $_SESSION['user_id'];
$api_id = $_SESSION['api_id'];
$limit = $_SESSION['limit'];
$final_link = 'http://www.mywebsite.info/payment/public/createPayment/' .$user_id .'/' .$api_id .'/' .$limit;
echo $final_link;
header('Location: .$final_link');
exit;
unset($_SESSION["user_id"]);
unset($_SESSION["api_id"]);
unset($_SESSION["limit"]);
?>