Question

What are the options to prevent indexing of branding site deployed in Odin Automation?

Answer

You may put robots.txt file to the root folder of branding webspace. From version 7 of OAP you may find it on the branding node in /var/www/brands/. For version 6 a branding webspace may be located on a web hosting server.

In .htaccess file located in the same webspace folder find the line:

RewriteEngine on

Then place following line right after it:

RewriteRule ^robots.txt$ robots.txt [L]

Please note, that directive above should be added exact after RewriteEngine declaration. Otherwise these changes will be ignored. Also, this customization will be reverted upon applying any changed to brand via PCP.

Apache should be reloaded to immediately apply changes. Use the following command:

service httpd reload

Robots.txt content example:

User-agent: *
Disallow: /

You may learn more about robots.txt at robotstxt.org.

Internal content