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

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

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