Plugin

EE 1
EE 2
HTTP Header

Developer

Rob Sanchez - Barrett Newton

3rd Party (Free)


Compatibility

  • LG Addon Updater
  • Multi Site Manager
  • Stand Alone Entry Form

Requirements

  • jQuery for the Control Panel

Tags

Set the HTTP Headers for your template.

Parameters

* status - input an HTTP Status code
* location - set a location for redirection
* content_type - set a Content-Type header
* terminate - set to “yes” to prevent any other output from the template

Examples

Do a 301 redirect

    {exp:http_header status="302" location="{path=site/something}" terminate="yes"}

Set a 404 Status header

    {exp:http_header status="404"}

Set the Content-Type header to application/json


    {exp:http_header content_type="application/json"}

HTTP Header Links

This entry was last updated April 20, 2012, 3:58 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!