Try changing:

header("Location : blabla")
                ^
                |
           (whitespace)

To

header("Location: blabla")
Answer from BuraCULa on Stack Overflow
🌐
W3Schools
w3schools.com › php › func_network_header.asp
PHP header() Function
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
🌐
W3Schools
w3schools.in › php › php-headers
PHP Header Function - W3Schools
<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.example.com/"); ?> Furthermore, you can add some redirection interval by using the following code:
Discussions

http redirect - PHP header(Location: ...): Force URL change in address bar - Stack Overflow
I'm currently working on a mobile site with authentication using PHP sessions with a database. I have a login page with a form that goes to server_login.php on submit. The php file then creates some More on stackoverflow.com
🌐 stackoverflow.com
PHP Redirect to different url using header("Location:") does not work
I am quite new to php, I did some research and tried someone else's solution but it did not work out for me. I want to redirect users to another page after a certain code has been executed. I reali... More on stackoverflow.com
🌐 stackoverflow.com
http redirect - Back to previous page with header( "Location: " ); in PHP - Stack Overflow
The title of this question kind of explains my question. How do I redirect the PHP page visitor back to their previous page with the header( "Location: URL of previous page" ); More on stackoverflow.com
🌐 stackoverflow.com
PHP Header Location not working - PHP - SitePoint Forums | Web Development & Design Community
I have taken on the task of moving a PHP/MySql website to a new host. I am setting up the files in a sub-directory of my website to make sure I get it right. There is an administrative function on the first host when logging in takes the user to admin functions i.e. Add or update members, edit ... More on sitepoint.com
🌐 sitepoint.com
0
October 26, 2011
🌐
PHP
php.net › manual › en › function.header.php
PHP: header - Manual
In the case of redirects, if you forget to terminate your script after sending the header, adding a buffer or sending a character may change which page your users are sent to. This redirects to 2.html since the second header replaces the first. <?php header("location: 1.html"); header("location: 2.html"); //replaces 1.html ?> This redirects to 1.html since the header is sent as soon as the echo happens.
🌐
Edureka
edureka.co › blog › header-location-in-php
Header Location In PHP | PHP Header Location Edureka
February 25, 2025 - This article on Header Location In PHP will introduce to header function in PHP along with the practical demonstration for the same.
🌐
W3Schools
w3schools.com › php › func_network_headers_sent.asp
PHP headers_sent() Function
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
Find elsewhere
🌐
W3Schools
w3schools.sinsixx.com › php › func_http_header.asp.htm
PHP header() Function - SinSiXX - W3Schools
Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building.
🌐
W3Schools
www-db.deis.unibo.it › courses › TW › DOCS › w3schools › php › func_http_header.asp.html
PHP header() Function
AJAX Intro AJAX PHP AJAX Database AJAX XML AJAX Live Search AJAX RSS Reader AJAX Poll ... PHP Array PHP Calendar PHP Date PHP Directory PHP Error PHP Filesystem PHP Filter PHP FTP PHP HTTP PHP Libxml PHP Mail PHP Math PHP Misc PHP MySQLi PHP SimpleXML PHP String PHP XML PHP Zip PHP Timezones ... The header() function sends a raw HTTP header to a client.
🌐
W3Docs
w3docs.com › php
How to Redirect a Web Page with PHP
<?php header('Location: //www.w3docs.com'); // or die(); exit(); ?>
🌐
Medium
medium.com › @diwakerrohit69 › learning-header-location-in-php-a-comprehensive-guide-for-superior-website-development-856779711463
Learning Header Location in PHP: A Comprehensive Guide for Superior Website Development | by Rohit Diwaker | Medium
February 8, 2024 - Best Practices for Header Location Implementation: 1. Error Handling and Validation. To protect your PHP code from potential vulnerabilities, provide strong error handling and input validation procedures.
🌐
W3Schools
w3schools.com › php › func_network_headers_list.asp
PHP headers_list() Function
headers_list() ❮ PHP Network Reference · ★ +1 · Sign in to track progress · REMOVE ADS · PLUS · SPACES · GET CERTIFIED · FOR TEACHERS · BOOTCAMPS · CONTACT US · × · If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com ·
🌐
VSYS
vsys.host › how-to › how-to-make-a-redirect-in-php
How to Make a Redirect in PHP ★ VSYS Tutorials
August 8, 2024 - The header() function must be placed in the page’s source code before any HTML to redirect correctly. Put it at the top of the page, right before the!DOCTYPE declaration. Here is a PHP code example for your consideration:
🌐
GeeksforGeeks
geeksforgeeks.org › php › php-header-function
PHP | header() Function - GeeksforGeeks
July 11, 2025 - This will change location of header, i.e. redirect to the URL ... <?php // PHP program to describes header function // Set a past date header("Expires: Sun, 25 Jul 1997 06:02:34 GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); ?> <html> <body> <p>Hello World!</p> <!-- PHP program to display header list --> <?php print_r(headers_list()); ?> </body> </html>
🌐
PHPpot
phppot.com › php › php-header
PHP header - PHPpot
The usage of the PHP header location setting is as follows. It starts with the Location keyword followed by the target URI. The header function executes page redirect in PHP on the server-side. The below code uses the PHP exit statement.
🌐
SitePoint
sitepoint.com › php
PHP Header Location not working - PHP - SitePoint Forums | Web Development & Design Community
October 26, 2011 - The blue part is the URL requested, ... and the red lines are the reply headers. The Location: should be somewhere in the reply headers for your-script.php (replace “your-script” with however your script is calle...
🌐
DaniWeb
daniweb.com › programming › web-development › threads › 358490 › header-location-php-help
Header location php (help) | DaniWeb
April 8, 2011 - But assuming that it's the error I think it is then you will need to do the following. First of all make sure the page starts with <?php instead of <? for compatibility reasons. Also make sure the header() function has a lower 'h'. Then most importantley of all make sure there is no html or browser output before the header function.