Search

How can Symphony send different Response-Headers for Pages, e.g. when calling the page with parameters?

Like this:

[empty] => send Response Header "text/html"

/?xml => send Response Header "text/xml"

/?etc => ...

Basically a kind of dynamic page-type is needed (?)

So far, my sites delivers these different output-formats, only the headers are the problem.

Any suggestions?

Thank you in advance

The Page Headers extension may work for you?

Thank you Brendo.

Got it working now. I took your linked extension as a template for customizations. Basically it checks the Doc-Type of the page-output and fires the corresponding "Content-Type" via "header()"-Function.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details