Google indexes the pages belonging to the services pages of my website, i.e. this page. That’s fine for SEO puposes.
But people who go to this page should automatically be redirected to my homepage.
Thats why I added code like recommended here.
But this code will be executed also when people go to my homepage then. Is there a workaround (if I want to avoid telling Google not to index the subpages)?