[TYPO3-dev] Meta tag "noindex, nofollow" on development domain

Christian Kuhn lolli at schwarzbu.ch
Wed Aug 18 22:29:08 CEST 2010


Thomas "Thasmo" Deinhamer wrote:
> Actually I think this is the best solution for this problem, but I 
> appreciate any other useful solution or feedback about this!

Solve it with a condition bound to your dev domain (you probably need 
the same to disable google analytics on dev, or to set correct baseUrl 
on dev):

# Production settings
page.meta.robots = all
config.baseURL = http://production.domain/

# Switches for dev
[globalString = ENV:HTTP_HOST=dev.domain]
	page.meta.robots = noindex, nofollow
	config.baseURL = http://dev.domain/
[global]

This way you can deploy the condition to your production system as well 
and don't need to change anything during deployment process.

Still, it's usually a good idea so secure access to your dev domain with 
a .htaccess password, or restrict access to dev with some other method.

Regards
Christian




More information about the TYPO3-dev mailing list