You need to be careful while using relative URLs in Location
redirects.
So, it will be better if you print absolute URLs in the headers instead of relative URLs.
More Related Contents:
- Create the timestamp of an hour ago [duplicate]
- How to secure database passwords in PHP?
- Single result from database using mysqli
- Pretty-Printing JSON with PHP
- PHP – Check if two arrays are equal
- Getting the names of all files in a directory with PHP
- Disable warnings when loading non-well-formed HTML by DomDocument (PHP)
- How can I detect a create, update, delete query is successful in Codeigniter
- How to Get the Query Executed in Laravel 5? DB::getQueryLog() Returning Empty Array
- How exactly is a PHP script executed?
- Setting value of a HTML form textarea?
- How to sum N number of time (HH:MM Format)?
- How do I deep copy a DateTime object?
- php file upload, how to restrict file upload type
- Double not (!!) operator in PHP
- Looping through all the properties of object php
- PHP get dropdown value and text
- MySQL error when inserting data containing apostrophes (single quotes)?
- PHP pass variable to include
- variable variables
- PHP 7.4 deprecated get_magic_quotes_gpc function alternative
- Delete first 3 characters and last 3 characters from String PHP
- Replace tabs and spaces with a single space as well as carriage returns and newlines with a single newline
- move all files in a folder to another?
- What is the difference between null and empty?
- How can I get jQuery code completion in NetBeans?
- How to iterate through a nested stdClass? [duplicate]
- How to get the object or class name?
- Does PHP’s $_REQUEST method have a security problem?
- Laravel 5 get view name