One of the great things about tent.io is how it discovers where your server is. This is important because it is possible for you to keep your tent entity URL indefinitely but change what server is actually responsible for acting on behalf of it. http://tent.io/docs/server-protocol details how the process works so I won’t get into here. I’m going to quickly cover how you add this header in Apache in a VirtualHost config file or .htaccess file. If you only have access to change your .htaccess file go ahead and do so there, if you can edit your virtual host config file you can do it there as well. The end result will be the same.
The format is the same in either the VirtualHost config file or .htaccess file. It is simply:
<ifModule mod_headers.c> Header set Link "<https://controlplane.tent.is/tent/profile>; rel=\"https://tent.io/rels/profile\"" </ifModule>
Replace “https://controlplane.tent.is/tent/profile” with the location of YOUR profile. Place the above text directly into your .htaccess or within the <VirtualHost></VirtualHost> stanza of your virtual host config file.
If you edit your virtual host config file, you’ll need to reload or restart Apache for the changes to take affect. Keep in mind that you can’t add headers to a redirect so if you use a redirect to add www to your site address (for example) you can’t put it in the redirect stanza.
You can test the results using curl -I <hostname> or online using http://web-sniffer.net