Web based family history software

Question [SOLVED] Custom page - not indexed by Google

  • MichielB
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #1 by MichielB
Custom page - not indexed by Google was created by MichielB
I used the following post to create a custom page: custom page
The page works fine, but is not being indexed by Google (reason: <meta name="robots" content="noindex,nofollow">.
Is there a simple way (for a non-coder) to adjust that?

One thing I tried was to create a story, but the story pages are not indexed too because of the '#'.

Thanks in advance!

webtrees v1.7.14

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #2 by fisharebest
Replied by fisharebest on topic Custom page - not indexed by Google
You need to set the meta-robots header using something like this:
Code:
$controller ->setPageTitle('My page title') ->setMetaRobots('index,follow') ->pageHeader();

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • MichielB
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago - 4 years 4 months ago #3 by MichielB
Replied by MichielB on topic [SOLVED] Custom page - not indexed by Google
Problem solved.

I added: $controller->setMetaRobots('index,follow');
Thank you!

webtrees v1.7.14
Last edit: 4 years 4 months ago by MichielB.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}