A
A
Alexander Batalov2011-06-26 05:13:10
Apache HTTP Server
Alexander Batalov, 2011-06-26 05:13:10

Header "text/xml" means of Apache for dynamic content?

You need something like "ForceType text/xml" so that all content that is generated in PHP (for example, site.com/feed/rss.xml ) is assigned a "text/xml" header by Apache.
header("Content-Type: text/xml;") - do not offer, caching is implemented in such a way that PHP does not return the header a second time.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2011-06-26
@Norraxx

httpd.apache.org/docs/current/rewrite/flags.html#flag_t

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question