Module for Orchard Core that provides useful features for SEO (search engine optimisation).
This module is referencing the RC1 build of Orchard Core (1.0.0-rc1-10004
).
Define main hostname to redirect all domain variations and force SSL.
Attach content part that gives content editors ability to manage basic meta tags (inspired by metatags.io).
When using this module you may notice the page title will include the display text for the content item as well as the value defined in the title field. This is because the ContentsMetadata
shape within Orchard Core will automatically add the display text for a content item to a page title. The work around is to override the ContentsMetadata
shape within your theme. Below is the Razor template that will set the page title to the value entered in the meta tag title field. When the content type doesn't have the MetaTagsPart
attached or no value has been defined within the title field the default approach of using the display text for the content item is used.
@using OrchardCore.ContentManagement
@{
ContentItem contentItem = Model.ContentItem;
if (Model.ContentItem.Content.MetaTagsPart == null || string.IsNullOrWhiteSpace((string)Model.ContentItem.Content.MetaTagsPart.Title)) {
Title.AddSegment(Html.Raw(Html.Encode(contentItem.DisplayText)));
}
}
Under development
Create redirect content items that'll redirect a relative URL to another URL.
When creating a content item to redirect from homepage to another page, you need to make sure to disable the Home Route
Module to make the redirect work correctly.
This feature adds the ability to bulk import redirects from an XLSX file.
Manage contents of /robots.txt
.
This module is available on NuGet. Add a reference to your Orchard Core web project via the NuGet package manager. Search for "Etch.OrchardCore.SEO", ensuring include prereleases is checked.