We have a lot of redirects in our system which works with php. But its quite difficult to remove them, because the core of the system needs them.
So, is there a possibility to redirect with php without to inform the client while processing the second page and deliver only the second pages content and its new url?
Example:
The clients requests a page named page1.php
. The server processes this page and realises while processing that a redirect to page2.php
is needed. Instead of redirecting to page2.php
the server runs the content of page2.php
and send the page2.php
content to the client. Also the client should be informed that the actual URL is page2.php
.