All posts tagged 'search engine

Topics: ASP.NET 2.0, Themes
Jan 23, 2012 at 5:34 PM

Why is it, or rather is there any way to change the way Blog engine displays pages to the search engines.

For instance many of the pages within blogengine come back indexed with the title: All Posts Tagged 'keyword' 

For me at least this is un natural for reading.  Can the text be changed or modified?  any other suggestions are welcome.

Jan 23, 2012 at 6:09 PM

If you checkout the default.aspx.cs in the root directory of you can see there is a method for controlling tag display page...

private void DisplayTags()
        if (!string.IsNullOrEmpty(Request.QueryString["tag"]))
            PostList1.ContentBy = ServingContentBy.Tag;
            PostList1.Posts = Post.GetPostsByTag(Request.QueryString["tag"].Substring(1)).ConvertAll(new Converter<Post, IPublishable>(delegate(Post p) { return p as IPublishable; }));
            base.Title = " All posts tagged '" + Request.QueryString["tag"].Substring(1) + "'";
            //base.AddMetaTag("description", Server.HtmlEncode(BlogSettings.Instance.Description));

This method dynamically writes your tags page title to All posts tagged , Major search engine like google see it as an indication about the page's nature that gets appended after this string..

Change the text All posts tagged to anything you like and after a few days google will start displaying your tagged pages by that name...

Jan 23, 2012 at 6:59 PM

Thank you so much for pointing this out.

Do you feel as though altering the content to something else such as, " " + Request.QueryString

will affect the rankings of index in a negative way?

Jan 24, 2012 at 11:28 AM

I don't think so as your actual keyword is Request.QueryString..