Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Custom Meta Tags on the home page


Go to End


2 Posts   3633 Views

Avatar
webmmsd

Community Member, 10 Posts

11 June 2010 at 6:27am

Edited: 11/06/2010 6:29am

Hello,

I've added this to the Custom Meta Tags under Metadata on the "Home page" of the site
<meta name="robots" content="index,follow" />
<meta name="revisit-after" content="31 Days" />

And changes this in the head section of Page.ss:
<title>$Title &raquo; Maritime Museum of San Diego</title> - original
$MetaTags(false)
to

$MetaTags

I see the other way to help search is with a robots.txt file - http://www.google.com/robots.txt

Except I have no idea which folders are the ones that should be under "Allow: or Disallow:"

My main goal is to help the SEO of this site, which has been horrible to this point. Will the custom meta tags I added help, or is there a robots.txt for silverstripe that I should use instead?

Thank you,
Alex

Avatar
Willr

Forum Moderator, 5523 Posts

12 June 2010 at 10:26pm

Edited: 12/06/2010 10:26pm

Well you could disable things like

/admin/
/dev/

You could also put your /assets/ folder if you didn't want that to be indexed. I don't think you will need to list every module as the only urls generated from the modules which are allowed would be images, javascript or css files.