Rewrite HTTP server header with PHP -


when try use code:

header('x-powered-by: asp.net'); header('server: microsoft-iis/7.5'); 

the headers have sent are:

server:apache/2.2.22 (win64) php/5.4.3 x-powered-by:asp.net 

what need do?

your server header being replaced apache2.

the solution may completly disable sending server header web server. in fact apache (and of web servers) not allow completly disable server signature.

you can find useful information here: removing http headers in apache2


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -