How to edit meta tags in DotNetNuke

How do you edit tags in the DotNetNuke CMS?

it generates many meta tags and has an ID element for each meta tag that is not contained in the w3c guidelines. Ive looked at SEO optimization articles and he says they have no other meta tags other than keywords and name - is that true?

Meta tags when viewing the source code:

<meta id="MetaKeywords" name="KEYWORDS" content="naruto, fan, forums, DotNetNuke,DNN" />
<meta id="MetaCopyright" name="COPYRIGHT" content="Copyright naruto"/>
<meta id="MetaGenerator" name="GENERATOR" content="DotNetNuke " />
<meta id="MetaAuthor" name="AUTHOR" content="naruto" />
<meta name="RESOURCE-TYPE" content="DOCUMENT" />
<meta name="DISTRIBUTION" content="GLOBAL" />
<meta name="REVISIT-AFTER" content="1 DAYS" />
+5
source share
4 answers

, / meta DNN. / , . , / , , :

private void Page_PreRender(object sender, EventArgs e) {
    var metaRobots = Page.FindControl("MetaRobots") as HtmlMeta;
    if (metaRobots != null) {
        metaRobots.Visible = false;
    }
}
+3

Default.aspx , , , , , # . ascx

<script runat="server">
protected override void OnLoad(EventArgs e)
{
    var metatagsToKeep = new[] { "Content-Type", "Content-Script-Type", "Content-Style-Type", "Refresh", "DESCRIPTION", "KEYWORDS", "COPYRIGHT", "GENERATOR", "AUTHOR", "RESOURCE-TYPE", "DISTRIBUTION", "ROBOTS", "REVISIT-AFTER", "RATING", "PAGE-ENTER" };

    var metaTags = (from headerControl in this.Page.Header.Controls.OfType<HtmlControl>() let cont = headerControl where !metatagsToKeep.Contains(cont.Attributes["name"]) && !metatagsToKeep.Contains(cont.Attributes["http-equiv"]) select headerControl).Cast<Control>().ToList();

    foreach (var metaTag in metaTags)
    {
        this.Page.Header.Controls.Remove(metaTag);
    } 
}
</script>

controlsToKeep , , . , DNN , ( ), . metatagsToDelete, :).

+2

, dotnetnuke CMS. , SEO.

. Google keywords , , , , .

SEO . , . SEO, , .

-

- -, . , , . , . , , .

, .

W3C:

. META . HTML- META : TITLE, ADDRESS, INS DEL, title cite

-. name, scheme, content http-equiv W3C. lang dir -, , .

id - .

0

DotNetNuke . 1.) " β†’ " " " , . , . 2.) : . , . - , , .

, , . .

0
source

All Articles