(New in 2.1)

Forces the use of a particular handler in dealing with the rewritten request. Equivalent to the AddHandler directive.

For example, to cause a request for a phps file to return the syntax-highlighted source code of the associated php file, you might do something like this:

RewriteRule (.*)\.phps$ $1.php [H=application/x-httpd-php-source]
  • No labels