I need to redirect from a CGI to a page of the same server created in Laravel. When I use the path from a browser it presents itself without problems, but when using the CGI, Laravel presents an error to me.
https://myserver:8080/bitacora/index.php/devices
Error when using Location: /bitacora/index.php/devices
header from a CGI
The only difference I see in PHP is that it does not use QUERY_STRING, but the "arguments" are delivered by the PHP_SELF variable.
Any ideas on how to act correctly? I remember that some frameworks redirect to a variable, such as module or action. Something similar in Laravel?
Use full URL
not just
Location: /bitacora/index.php/devices
But replace this with following
Location: http://myserver:8080/bitacora/index.php/devices
.