(force MIME <strong>t</strong>ype)<br />
Force the MIME-type of the target file to be
<em>MIME-type</em>. For instance, this can be used to
+ setup the content-type based on some conditions.
+ For example, the following snippet allows <code>.php</code> files to
+ be <em>displayed</em> by <code>mod_php</code> if they are called with
+ the <code>.phps</code> extension:
+ <div class="example"><p><code>
+ RewriteRule ^(.+\.php)s$ $1 [T=application/x-httpd-php-source]
+ </code></p></div>
+ </li>
+
+ <li>
+ '<strong><code>handler|H</code></strong>=<em>Content-handler</em>'
+ (force Content <strong>h</strong>andler)<br />
+ Force the Content-handler of the target file to be
+ <em>Content-handler</em>. For instance, this can be used to
simulate the <code>mod_alias</code> directive
<code>ScriptAlias</code> which internally forces all files
- inside the mapped directory to have a MIME type of
- ``<code>application/x-httpd-cgi</code>''.</li>
+ inside the mapped directory to have a handler of
+ ``<code>cgi-script</code>''.</li>
<li>
'<strong><code>nosubreq|NS</code></strong>' (used only if
(force MIME <strong>t</strong>ype)<br />
Force the MIME-type of the target file to be
<em>MIME-type</em>. For instance, this can be used to
+ setup the content-type based on some conditions.
+ For example, the following snippet allows <code>.php</code> files to
+ be <em>displayed</em> by <code>mod_php</code> if they are called with
+ the <code>.phps</code> extension:
+ <example>
+ RewriteRule ^(.+\.php)s$ $1 [T=application/x-httpd-php-source]
+ </example>
+ </li>
+
+ <li>
+ '<strong><code>handler|H</code></strong>=<em>Content-handler</em>'
+ (force Content <strong>h</strong>andler)<br />
+ Force the Content-handler of the target file to be
+ <em>Content-handler</em>. For instance, this can be used to
simulate the <code>mod_alias</code> directive
<code>ScriptAlias</code> which internally forces all files
- inside the mapped directory to have a MIME type of
- ``<code>application/x-httpd-cgi</code>''.</li>
+ inside the mapped directory to have a handler of
+ ``<code>cgi-script</code>''.</li>
<li>
'<strong><code>nosubreq|NS</code></strong>' (used only if